Include "extzp.inc" instead of using direct imports of symbols.
This commit is contained in:
parent
5d2e748bd4
commit
3601c3fb9b
6 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
;
|
||||
.export _gotoxy
|
||||
.import popa, plot
|
||||
.importzp CURS_X, CURS_Y
|
||||
.include "extzp.inc"
|
||||
|
||||
_gotoxy:
|
||||
sta CURS_Y ; Set Y
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
; unsigned char wherex (void);
|
||||
;
|
||||
.export _wherex
|
||||
.import CURS_X: zp
|
||||
.include "extzp.inc"
|
||||
|
||||
.proc _wherex
|
||||
lda CURS_X
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
; unsigned char wherey (void);
|
||||
;
|
||||
.export _wherey
|
||||
.import CURS_Y: zp
|
||||
.include "extzp.inc"
|
||||
|
||||
.proc _wherey
|
||||
lda CURS_Y
|
||||
|
|
Loading…
Add table
Reference in a new issue