mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-20 08:32:16 +00:00
.
This commit is contained in:
parent
66b33dfd2f
commit
0db950038c
@ -33,22 +33,19 @@ HGRBlockCopy
|
||||
; in: A = HGR row / 8 (0x00..0x17)
|
||||
; Y = HGR column (0x00..0x27)
|
||||
; out: Y preserved
|
||||
; X = #$FF
|
||||
; X = #$00
|
||||
; Z set
|
||||
; all other flags and registers clobbered
|
||||
sty @y
|
||||
asl
|
||||
asl
|
||||
asl
|
||||
jsr HGRCalc
|
||||
clc
|
||||
ldx #$08
|
||||
@y=*+1
|
||||
ldy #$FD ; modified at runtime
|
||||
@loop
|
||||
lda ($3c),y
|
||||
sta ($26),y
|
||||
lda $27
|
||||
clc
|
||||
adc #$04
|
||||
sta $27
|
||||
eor #$60
|
||||
@ -61,22 +58,19 @@ HGRBlockToWhite
|
||||
; in: A = HGR row / 8 (0x00..0x17)
|
||||
; Y = HGR column (0x00..0x27)
|
||||
; out: Y preserved
|
||||
; X = #$FF
|
||||
; X = #$00
|
||||
; Z set
|
||||
; all other flags and registers clobbered
|
||||
sty @y
|
||||
asl
|
||||
asl
|
||||
asl
|
||||
jsr HGRCalc
|
||||
clc
|
||||
ldx #$08
|
||||
@y=*+1
|
||||
ldy #$FD ; modified at runtime
|
||||
@loop
|
||||
lda #$7F
|
||||
sta ($26),y
|
||||
lda $27
|
||||
clc
|
||||
adc #$04
|
||||
sta $27
|
||||
eor #$60
|
||||
|
Loading…
x
Reference in New Issue
Block a user