4 ; Originally by Bastian Schick
5 ; http://www.geocities.com/SiliconValley/Byte/4242/lynx/
7 ; Ported to cc65 (http://www.cc65.org) by
8 ; Shawn Jefferson, June 2004
10 ; This version by Karri Kaksonen, December 2010
12 ; Helper stuff for the cartridge file functions. This version can deal
13 ; with 1024 bytes/block carts that are using CART0 as a read strobe.
14 ; Also the default crt0.s supports this most common Lynx cart format.
18 .export lynxskip0, lynxread0
25 ;**********************************
26 ; Skip bytes on bank 0
27 ; X:Y count (EOR $FFFF)
28 ;**********************************
37 ;**********************************
38 ; Read bytes from bank 0
39 ; X:Y count (EOR $ffff)
40 ;**********************************
53 ;**********************************
54 ; Read one byte from cartridge
55 ;**********************************
63 ;**********************************
65 ;**********************************
92 lda #$100-(>__BLOCKSIZE0__)