Skip to content

Commit

Permalink
native: final fixes for alpha release
Browse files Browse the repository at this point in the history
- uppercase function "forgot" the "z"
- removed hints for using broken function

Signed-off-by: Sven Oliver Moll <svolli@svolli.de>
  • Loading branch information
Sven Oliver Moll committed Dec 19, 2023
1 parent 76304c6 commit a58b727
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/65c02/native.inc
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ WDCH = WDBASE+$3 ; set high counter, stars watchdog, reset when running
IDBASE = $DF70
IDLBAL = IDBASE+$0 ; LBA low
IDLBAH = IDBASE+$1 ; LBA high
ID_LBA = IDBASE+$0 ; alternative notation: ID_LBA+0/ID_LBA+1
IDMEML = IDBASE+$2 ; DMA memory low
IDMEMH = IDBASE+$3 ; DMA memory high
ID_MEM = IDBASE+$2 ; alternative notation: ID_MEM+0/ID_MEM+1
IDREAD = IDBASE+$4 ; (S) read sector (adjusts DMA memory and LBA)
; (R) error code from last read ($00=ok)
IDWRT = IDBASE+$5 ; (S) write sector (adjusts DMA memory and LBA)
; (R) error code from last write ($00=ok)
IDTRIM = IDBASE+$7 ; sector discard (strobe)
ID_LBA = IDBASE+$0 ; alternative notation: ID_LBA+0/ID_LBA+1
ID_MEM = IDBASE+$2 ; alternative notation: ID_MEM+0/ID_MEM+1

UVNMI = $DF7A ; NMI does JMP (UVNMI)
UVBRK = $DF7C ; if UVIRQ handles BRK, this vector should be used
Expand Down
6 changes: 0 additions & 6 deletions src/65c02/native_bios.inc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,3 @@
; this routine saves all CPU registers, including P
.global PRINT

; $FF0C: jump from bank 0 (RAM) to a subroutine in bank 1 (Native Kernel)
; usage:
; jsr BANK1JSR
; .word address
; this routine saves all CPU registers, including P, it is as transparent as jsr
.global BANK1JSR
2 changes: 1 addition & 1 deletion src/65c02/native_kernel.s
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ chrinuc:
uppercase:
cmp #'a'
bcc :+
cmp #'z'
cmp #'z'+1
bcs :+
and #$df
:
Expand Down

0 comments on commit a58b727

Please sign in to comment.