mirror of
https://github.com/blondie7575/WeeGUI.git
synced 2025-01-25 06:31:26 +00:00
124 lines
1.8 KiB
ArmAsm
124 lines
1.8 KiB
ArmAsm
|
;
|
||
|
; memory.s
|
||
|
; Memory mapping information
|
||
|
;
|
||
|
; Created by Quinn Dunki on 8/15/14.
|
||
|
; Copyright (c) 2014 One Girl, One Laptop Productions. All rights reserved.
|
||
|
;
|
||
|
|
||
|
|
||
|
; Reserved locations
|
||
|
|
||
|
INVERSE = $32
|
||
|
BASL = $28
|
||
|
BASH = $29
|
||
|
|
||
|
|
||
|
; Zero page locations we use (unused by Monitor, Applesoft, or ProDOS)
|
||
|
PARAM0 = $06
|
||
|
PARAM1 = $07
|
||
|
PARAM2 = $08
|
||
|
PARAM3 = $09
|
||
|
SCRATCH0 = $19
|
||
|
SCRATCH1 = $1A
|
||
|
|
||
|
; Constants
|
||
|
|
||
|
CHAR_NORMAL = $ff
|
||
|
CHAR_INVERSE = $3f
|
||
|
CHAR_FLASH = $7f
|
||
|
|
||
|
|
||
|
; ROM entry points
|
||
|
|
||
|
COUT = $fded
|
||
|
BASCALC = $fbc1
|
||
|
|
||
|
|
||
|
; System state
|
||
|
WG_CURSORX: ; In screenspace
|
||
|
.byte 0
|
||
|
WG_CURSORY:
|
||
|
.byte 0
|
||
|
|
||
|
WG_LOCALCURSORX: ; In current viewspace
|
||
|
.byte 0
|
||
|
WG_LOCALCURSORY:
|
||
|
.byte 0
|
||
|
|
||
|
WG_ACTIVEVIEW:
|
||
|
.byte 0
|
||
|
|
||
|
WG_VIEWRECORDS:
|
||
|
; X, Y, Screen Width, Screen Height, Style, X Offset, Y Offset, View Width, View Height
|
||
|
.byte 0,0,0,0,0,0,0,0
|
||
|
.byte 0,0,0,0,0,0,0,0
|
||
|
.byte 0,0,0,0,0,0,0,0
|
||
|
.byte 0,0,0,0,0,0,0,0
|
||
|
.byte 0,0,0,0,0,0,0,0
|
||
|
.byte 0,0,0,0,0,0,0,0
|
||
|
.byte 0,0,0,0,0,0,0,0
|
||
|
.byte 0,0,0,0,0,0,0,0
|
||
|
.byte 0,0,0,0,0,0,0,0
|
||
|
.byte 0,0,0,0,0,0,0,0
|
||
|
.byte 0,0,0,0,0,0,0,0
|
||
|
.byte 0,0,0,0,0,0,0,0
|
||
|
.byte 0,0,0,0,0,0,0,0
|
||
|
.byte 0,0,0,0,0,0,0,0
|
||
|
.byte 0,0,0,0,0,0,0,0
|
||
|
.byte 0,0,0,0,0,0,0,0
|
||
|
|
||
|
|
||
|
; Video memory lookup table
|
||
|
TEXTLINES_H:
|
||
|
.byte $04 ;0
|
||
|
.byte $04 ;1
|
||
|
.byte $05 ;2
|
||
|
.byte $05 ;3
|
||
|
.byte $06 ;4
|
||
|
.byte $06 ;5
|
||
|
.byte $07 ;6
|
||
|
.byte $07 ;7
|
||
|
.byte $04 ;8
|
||
|
.byte $04 ;9
|
||
|
.byte $05 ;10
|
||
|
.byte $05 ;11
|
||
|
.byte $06 ;12
|
||
|
.byte $06 ;13
|
||
|
.byte $07 ;14
|
||
|
.byte $07 ;15
|
||
|
.byte $04 ;16
|
||
|
.byte $04 ;17
|
||
|
.byte $05 ;18
|
||
|
.byte $05 ;19
|
||
|
.byte $06 ;20
|
||
|
.byte $06 ;21
|
||
|
.byte $07 ;22
|
||
|
.byte $07 ;23
|
||
|
|
||
|
TEXTLINES_L:
|
||
|
.byte $00 ;0
|
||
|
.byte $80 ;1
|
||
|
.byte $00 ;2
|
||
|
.byte $80 ;3
|
||
|
.byte $00 ;4
|
||
|
.byte $80 ;5
|
||
|
.byte $00 ;6
|
||
|
.byte $80 ;7
|
||
|
.byte $28 ;8
|
||
|
.byte $a8 ;9
|
||
|
.byte $28 ;10
|
||
|
.byte $a8 ;11
|
||
|
.byte $28 ;12
|
||
|
.byte $a8 ;13
|
||
|
.byte $28 ;14
|
||
|
.byte $a8 ;15
|
||
|
.byte $50 ;16
|
||
|
.byte $d0 ;17
|
||
|
.byte $50 ;18
|
||
|
.byte $d0 ;19
|
||
|
.byte $50 ;20
|
||
|
.byte $d0 ;21
|
||
|
.byte $50 ;22
|
||
|
.byte $d0 ;23
|