Skip to content

Commit

Permalink
[KERNAL] extapi: rename get_fa to getlfs (X16Community#297)
Browse files Browse the repository at this point in the history
* [KERNAL] extapi: rename get_fa to getlfs

* fix dup label
  • Loading branch information
mooinglemur authored Mar 11, 2024
1 parent 02477d3 commit 2d07153
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion kernal/cbm/channel/channel.s
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ untlk = $ffab

; misc x16 additions
.export clear_status
.export get_fa
.export extapi_getlfs


.segment "ZPCHANNEL" : zeropage
Expand Down
6 changes: 4 additions & 2 deletions kernal/cbm/channel/x16additions.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ clear_status:
stz status
rts

get_fa:
lda fa
extapi_getlfs:
lda la
ldx fa
ldy sa
rts
7 changes: 4 additions & 3 deletions kernal/x16/extapi.s
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
.import clear_status
.import get_fa
.import extapi_getlfs

.export extapi

.segment "UTIL"

; This API call expects and requires e=1
; This API call expects and requires
; m=1,x=1,sp=$01xx (or e=1)
extapi:
pha ; reserve two free spots on the stack
pha
Expand All @@ -31,5 +32,5 @@ secrts:
apitbl:
.word secrts-1 ; slot 0 is reserved
.word clear_status-1 ; API 1
.word get_fa-1 ; API 2
.word extapi_getlfs-1 ; API 2

0 comments on commit 2d07153

Please sign in to comment.