mirror of
https://github.com/mi57730/a2d.git
synced 2025-02-18 02:30:50 +00:00
Factor out common A2 defines
This commit is contained in:
parent
391ee78bdd
commit
4d4966d6b4
@ -2,6 +2,7 @@
|
||||
.org $800
|
||||
|
||||
.include "apple2.inc"
|
||||
.include "../inc/apple2.inc"
|
||||
.include "../inc/prodos.inc"
|
||||
.include "../inc/auxmem.inc"
|
||||
.include "../inc/applesoft.inc"
|
||||
@ -10,9 +11,6 @@
|
||||
|
||||
adjust_txtptr := $B1
|
||||
|
||||
ROMIN2 := $C082
|
||||
COUT_HOOK := $36
|
||||
|
||||
;;; ==================================================
|
||||
;;; Start of the code
|
||||
|
||||
@ -936,7 +934,7 @@ loop: lda routine,x
|
||||
lda input_state_params::modifiers
|
||||
bne bail
|
||||
lda input_state_params::key
|
||||
cmp #$1B ; Escape?
|
||||
cmp #KEY_ESCAPE
|
||||
bne trydel
|
||||
lda L0BC5
|
||||
bne clear ; empty state?
|
||||
|
@ -2,20 +2,12 @@
|
||||
.setcpu "65C02"
|
||||
|
||||
.include "apple2.inc"
|
||||
.include "../inc/apple2.inc"
|
||||
.include "../inc/prodos.inc"
|
||||
.include "../inc/auxmem.inc"
|
||||
|
||||
.include "a2d.inc"
|
||||
|
||||
ROMIN2 := $C082
|
||||
|
||||
KEY_ENTER := $0D
|
||||
KEY_ESCAPE := $1B
|
||||
KEY_LEFT := $08
|
||||
KEY_DOWN := $0A
|
||||
KEY_UP := $0B
|
||||
KEY_RIGHT := $15
|
||||
|
||||
;;; ==================================================
|
||||
|
||||
jmp copy2aux
|
||||
|
@ -2,13 +2,12 @@
|
||||
.setcpu "65C02"
|
||||
|
||||
.include "apple2.inc"
|
||||
.include "../inc/apple2.inc"
|
||||
.include "../inc/prodos.inc"
|
||||
.include "../inc/auxmem.inc"
|
||||
|
||||
.include "a2d.inc"
|
||||
|
||||
ROMIN2 := $C082
|
||||
SPKR := $C030
|
||||
|
||||
jmp copy2aux
|
||||
|
||||
@ -771,7 +770,7 @@ check_key:
|
||||
lda get_input_params::modifiers
|
||||
bne :+
|
||||
lda get_input_params::key
|
||||
cmp #$1B ; Escape
|
||||
cmp #KEY_ESCAPE
|
||||
beq destroy
|
||||
: rts
|
||||
.endproc
|
||||
|
21
inc/apple2.inc
Normal file
21
inc/apple2.inc
Normal file
@ -0,0 +1,21 @@
|
||||
;;; ------------------------------
|
||||
;;; More Apple II Symbols
|
||||
;;; ------------------------------
|
||||
|
||||
;;; Zero Page
|
||||
|
||||
COUT_HOOK := $36
|
||||
|
||||
;;; Soft Switches
|
||||
|
||||
SPKR := $C030
|
||||
ROMIN2 := $C082
|
||||
|
||||
;;; Key Codes
|
||||
|
||||
KEY_ENTER := $0D
|
||||
KEY_ESCAPE := $1B
|
||||
KEY_LEFT := $08
|
||||
KEY_DOWN := $0A
|
||||
KEY_UP := $0B
|
||||
KEY_RIGHT := $15
|
Loading…
x
Reference in New Issue
Block a user