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
24 ;**********************************
25 ; Skip bytes on bank 0
26 ; X:Y count (EOR $FFFF)
27 ;**********************************
36 ;**********************************
37 ; Read bytes from bank 0
38 ; X:Y count (EOR $ffff)
39 ;**********************************
52 ;**********************************
53 ; Read one byte from cartridge
54 ;**********************************
62 ;**********************************
64 ;**********************************
91 lda #<($100-(>__BLOCKSIZE__))