-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathincREVERSECommand.asm
37 lines (29 loc) · 994 Bytes
/
incREVERSECommand.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
;*******************************************************************************
;* REVERSE Command *
;* This BASIC function will negative the screen *
;* *****************************************************************************
;* Syntax : REVERSE or re Shifted V *
;* Inputs : *
;* : *
;*******************************************************************************
; reverse : reverse
COM_REVERSE
lda #$00
sta RIBUF
lda #$A0
sta RIBUF + 1
jsr BANK_OUT_ROM
@OuterLooper
ldy #00
@InnerLooper
lda (RIBUF),y
eor #%11111111
sta (RIBUF),y
iny
bne @InnerLooper
inc RIBUF + 1
lda RIBUF + 1
cmp #$BF
bne @OuterLooper
jsr BANK_IN_ROM
rts