-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path02 - Tutorial Two.asm
36 lines (30 loc) · 1.32 KB
/
02 - Tutorial Two.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
; 10 SYS (2304)
*=$0801
BYTE $0E, $08, $0A, $00, $9E, $20, $28
BYTE $32, $33, $30, $34, $29, $00, $00, $00
;*******************************************************************************
;* Reverses the screen *
;* *
;* Written By John C. Dale *
;* Tutorial #02 *
;* Date : 28th Dec, 2016 *
;* *
;*******************************************************************************
;* *
;*******************************************************************************
*=$0900
SCRN_START=$0400
defm ReverseScreenLocation
lda /1,x
eor #128
sta /1,x
endm
ldx #0 ; Initialise Offset
LOOP
ReverseScreenLocation SCRN_START ; Screen Bank 0
ReverseScreenLocation SCRN_START + $0100 ; Screen Bank 1
ReverseScreenLocation SCRN_START + $0200 ; Screen Bank 2
ReverseScreenLocation SCRN_START + $0300 ; Screen Bank 3
inx
bne LOOP
rts