mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
vdl macro
This commit is contained in:
@@ -51,6 +51,28 @@
|
||||
STX $0201
|
||||
STA NMIEN
|
||||
.ENDM
|
||||
;-------------------------------------
|
||||
.MACRO VDL
|
||||
; VDL #WORD
|
||||
; Changes Display List addres
|
||||
; and sets width of the screen
|
||||
; vdl dl,$01 - narrow screen (32 bytes)
|
||||
; vdl dl,$02 - normal screen (40 bytes)
|
||||
; vdl dl,$03 - wide screen (48 bytes)
|
||||
; (works only with system interrupts ON)
|
||||
|
||||
.if %0=2
|
||||
lda dmactls
|
||||
and #$fc
|
||||
ora #%2
|
||||
sta dmactls
|
||||
.endif
|
||||
|
||||
LDA # <%1
|
||||
STA DLPTRS
|
||||
LDA # >%1
|
||||
STA DLPTRS+1
|
||||
.ENDM
|
||||
;-------------------------------------
|
||||
.MACRO halt
|
||||
?stop
|
||||
|
||||
Reference in New Issue
Block a user