]> git.sur5r.net Git - cc65/blobdiff - libsrc/lynx/lynx-cart.s
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / lynx / lynx-cart.s
index f740614ee65b486b64a4a440541baf9b5c67eff3..42729a106b32a4d573111471715722bf9faa32e8 100644 (file)
@@ -17,8 +17,7 @@
        .include "extzp.inc"
        .export  lynxskip0, lynxread0
        .export  lynxblock 
-
-__BLOCKSIZE0__ = 1024
+       .import  __BLOCKSIZE__
 
        .code
 
@@ -89,7 +88,7 @@ lynxblock:
        lda __iodat
        sta IODAT
        stz _FileBlockByte
-       lda #$100-(>__BLOCKSIZE0__)
+       lda #<($100-(>__BLOCKSIZE__))
        sta _FileBlockByte+1
        ply
        plx