]> git.sur5r.net Git - cc65/blob - libsrc/geos/graph/bitotherclip.s
dio bugfix, added get_tv and get_ostype functions
[cc65] / libsrc / geos / graph / bitotherclip.s
1
2 ;
3 ; Maciej 'YTM/Alliance' Witkowiak
4 ;
5 ; 21.12.99
6
7 ; void BitOtherClip     (void *proc1, void* proc2, char skipl, char skipr, int skipy, 
8 ;                               struct iconpic *myGfx);
9
10 ; both proc1, proc2 should be: char __fastcall something (void);
11 ;       proc1 is called before reading a byte (.A returns next data)
12 ;       proc2 is called before reading each byte which is not pattern (code >219)
13
14
15             .import popa, popax
16             .import BitOtherRegs
17             .export _BitOtherClip
18
19             .include "../inc/jumptab.inc"
20             .include "../inc/geossym.inc"
21
22 _BitOtherClip:
23             jsr BitOtherRegs
24             jsr popax
25             sta r12L
26             stx r12H
27             jsr popa
28             sta r11H
29             jsr popa
30             sta r11L
31             jsr popax
32             sta r14L
33             stx r14H
34             jsr popax
35             sta r13L
36             stx r13H
37             jmp BitOtherClip