Expanded hardware.s

This commit is contained in:
0xMAC8205 2023-11-20 13:22:50 +01:00
parent 3cfc9583c7
commit 3e1b5e70af
7 changed files with 106 additions and 7 deletions

BIN
assets/UTF-8.2.bmf Executable file

Binary file not shown.

View File

@ -1,3 +1,5 @@
#!/bin/bash
echo "Compiling for 65c02"
# Removing previous build

View File

@ -33,15 +33,16 @@ Hardware.s
+- vram_write_color
+- vram_read
+- vram_dump
+- beep
+- set_activity_led
+- set_activity_led_duration
+- set_user_led
+- set_user_led_duration
+- expansion_set
+- expansion_get
beep
set_activity_led
set_user_led
scan_keyboard
expansion_set
expansion_get
Int.s
|
+- int16_add_byte

View File

@ -14,7 +14,7 @@ console_write:
; ToDo:
; Support for ASCII (0-32) Chars, Line feed etc.
; Support for Color codes => Maybe #$ff Indicator
; Return propper work addresses in X & Y
; Return propper work addresses in X & Y (for static support)
;
stx z0

View File

@ -98,3 +98,89 @@ vram_dump:
rts
beep:
; Beep
; Beeps the main speaker
; Input:
; A => Beep Duration
; Output: (none)
sta beep_counter
rts
set_activity_led:
; Set Activity LED
; Sets the Activity LED Constant
; Input:
; A => State
; Output: (none)
rts
set_user_led:
; Set User LED
; Sets the User LED Constant
; Input:
; A => State
; Output: (none)
rts
set_activity_led_duration:
; Set Activity LED Duration
; Sets the Time (in Ticks),
; where the Activity LED is HIGH
; Input:
; A => Duration
; Output: (none)
rts
set_user_led_duration:
; Set User LED Duration
; Sets the Time (in Ticks),
; where the User LED is HIGH
; Input:
; A => Duration
; Output: (none)
rts
expansion_get:
; Expansion Get
; Gets Data from the Selected Expansion port,
; at the given Port-Address
; Input:
; X => Port Number
; Y => Port Address
; Output:
; A <= Read Data
rts
expansion_set:
; Expansion Set
; Sets Data from the Selected Expansion port,
; at the given Port-Address
; Input:
; A => Data
; X => Port Number
; Y => Port Address
; Output: (none)
rts

View File

@ -53,6 +53,14 @@ kernel_stack_counter = $420 ; 8 bit (internal) Length of Kernel Sta
kernel_stack_offload_1 = $421 ; 8 bit (internal) General Kernel Stack Offload Variable
kernel_stack_offload_2 = $422 ; 8 bit (internal) ..
beep_counter = $423 ; 8 bit (public) Beeper counter in IRQ Ticks
activity_led_counter = $424 ; 8 bit (public) Activity LED Counter in IRQ Ticks
user_led_counter = $425 ; 8 bit (public) User LED Counter in IRQ Ticks
; END => $500

View File

@ -1,3 +1,5 @@
#!/bin/bash
echo -e "\nUploading..."
bold=$(tput bold)