Copy bios device functions to kernel

This commit is contained in:
Byron Lathi
2023-09-04 14:31:55 -07:00
parent 791bffb248
commit a770d938de
12 changed files with 1071 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
.include "io.inc65"
.importzp sp, sreg
.export _sw_read
.export _led_set
.autoimport on
.code
; @out A: The Value of the switches
; Reads the current values of the switches.
_sw_read:
lda SW
ldx #$0
rts
; @in A: val
; @out A: 0 for success, 1 for failure
; Sets the LEDs
_led_set:
sta LED
rts