Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mist64 committed Oct 13, 2008
1 parent 281d930 commit 6ced722
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 44 deletions.
1 change: 1 addition & 0 deletions defines_kbd.s
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ CONFIG_11 := 1
CONFIG_11A := 1
CONFIG_SAFE_NAMENOTFOUND := 1
; INPUTBUFFER > $0100
CONFIG_NO_POKE := 1

CRLF_1 := $0A
CRLF_2 := $0D
Expand Down
40 changes: 0 additions & 40 deletions misc3.s
Original file line number Diff line number Diff line change
Expand Up @@ -65,44 +65,4 @@ LF472:
bcc LF45B
LF47D:
jmp (JMPADRS+1)
.else

; ----------------------------------------------------------------------------
; EVALUATE "EXP1,EXP2"
;
; CONVERT EXP1 TO 16-BIT NUMBER IN LINNUM
; CONVERT EXP2 TO 8-BIT NUMBER IN X-REG
; ----------------------------------------------------------------------------
GTNUM:
jsr FRMNUM
jsr GETADR

; ----------------------------------------------------------------------------
; EVALUATE ",EXPRESSION"
; CONVERT EXPRESSION TO SINGLE BYTE IN X-REG
; ----------------------------------------------------------------------------
COMBYTE:
jsr CHKCOM
jmp GETBYT

; ----------------------------------------------------------------------------
; CONVERT (FAC) TO A 16-BIT VALUE IN LINNUM
; ----------------------------------------------------------------------------
GETADR:
lda FACSIGN
.ifdef APPLE
nop
nop
.else
bmi GOIQ
.endif
lda FAC
cmp #$91
bcs GOIQ
jsr QINT
lda FAC_LAST-1
ldy FAC_LAST
sty LINNUM
sta LINNUM+1
rts
.endif
41 changes: 40 additions & 1 deletion poke.s
Original file line number Diff line number Diff line change
@@ -1,6 +1,45 @@
.segment "CODE"

.ifndef KBD
.ifndef CONFIG_NO_POKE
; ----------------------------------------------------------------------------
; EVALUATE "EXP1,EXP2"
;
; CONVERT EXP1 TO 16-BIT NUMBER IN LINNUM
; CONVERT EXP2 TO 8-BIT NUMBER IN X-REG
; ----------------------------------------------------------------------------
GTNUM:
jsr FRMNUM
jsr GETADR

; ----------------------------------------------------------------------------
; EVALUATE ",EXPRESSION"
; CONVERT EXPRESSION TO SINGLE BYTE IN X-REG
; ----------------------------------------------------------------------------
COMBYTE:
jsr CHKCOM
jmp GETBYT

; ----------------------------------------------------------------------------
; CONVERT (FAC) TO A 16-BIT VALUE IN LINNUM
; ----------------------------------------------------------------------------
GETADR:
lda FACSIGN
.ifdef APPLE
nop ; PATCH
nop
.else
bmi GOIQ
.endif
lda FAC
cmp #$91
bcs GOIQ
jsr QINT
lda FAC_LAST-1
ldy FAC_LAST
sty LINNUM
sta LINNUM+1
rts

; ----------------------------------------------------------------------------
; "PEEK" FUNCTION
; ----------------------------------------------------------------------------
Expand Down
11 changes: 8 additions & 3 deletions token.s
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@
keyword_rts "PSAV", PSAV
keyword_rts "VLOD", VLOD
keyword_rts "VSAV", VSAV
.else
.endif
.ifndef CONFIG_NO_POKE
keyword_rts "WAIT", WAIT
.endif
.ifndef KBD
keyword_rts "LOAD", LOAD
keyword_rts "SAVE", SAVE
.endif
Expand All @@ -47,7 +50,8 @@
keyword_rts "DEF", DEF
.ifdef KBD
keyword_rts "SLOD", SLOD
.else
.endif
.ifndef CONFIG_NO_POKE
keyword_rts "POKE", POKE
.endif
.ifdef CONFIG_FILE
Expand Down Expand Up @@ -126,7 +130,8 @@ UNFNC:
keyword_addr "ATN", ATN
.ifdef KBD
keyword_addr "GETC", GETC
.else
.endif
.ifndef CONFIG_NO_POKE
keyword_addr "PEEK", PEEK
.endif
keyword_addr "LEN", LEN
Expand Down

0 comments on commit 6ced722

Please sign in to comment.