Include "extzp.inc" instead of using direct imports of symbols.

This commit is contained in:
Stephan Mühlstrasser 2015-02-12 22:12:51 +01:00
parent 5d2e748bd4
commit 3601c3fb9b
6 changed files with 7 additions and 7 deletions

View File

@ -3,7 +3,7 @@
;
.export _clrscr
.import plot
.importzp CURS_X, CURS_Y
.include "extzp.inc"
.include "osic1p.inc"
; Adapted from the Challenger Character Graphics

View File

@ -6,8 +6,8 @@
; void gotox (unsigned char x);
;
.export _gotox
.import plot
.importzp CURS_X
.import plot
.include "extzp.inc"
_gotox: sta CURS_X ; Set new position
jmp plot ; And activate it

View File

@ -8,7 +8,7 @@
;
.export _gotoxy
.import popa, plot
.importzp CURS_X, CURS_Y
.include "extzp.inc"
_gotoxy:
sta CURS_Y ; Set Y

View File

@ -7,7 +7,7 @@
;
.export _gotoy
.import plot
.importzp CURS_Y
.include "extzp.inc"
_gotoy: sta CURS_Y ; Set the new position
jmp plot ; And activate it

View File

@ -5,7 +5,7 @@
; unsigned char wherex (void);
;
.export _wherex
.import CURS_X: zp
.include "extzp.inc"
.proc _wherex
lda CURS_X

View File

@ -5,7 +5,7 @@
; unsigned char wherey (void);
;
.export _wherey
.import CURS_Y: zp
.include "extzp.inc"
.proc _wherey
lda CURS_Y