Skip to content

Commit

Permalink
kernel_headers: fix keyboard and video headers for GNU's assembler
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeal8bit committed Oct 6, 2024
1 parent ac502c8 commit 9685fa6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions kernel_headers/gnu-as/zos_keyboard.asm
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@
.equ KB_KEY_BACKQUOTE, '`'
.equ KB_KEY_MINUS, '-'
.equ KB_KEY_EQUAL, '='
.equ KB_KEY_BACKSPACE, '\b'
.equ KB_KEY_BACKSPACE, 0x08 ; \b
.equ KB_KEY_SPACE, ' '
.equ KB_KEY_ENTER, '\n'
.equ KB_KEY_TAB, '\t'
.equ KB_KEY_ENTER, 0x0a ; \n
.equ KB_KEY_TAB, 0x09 ; \t
.equ KB_KEY_COMMA, ','
.equ KB_KEY_PERIOD, '.'
.equ KB_KEY_SLASH, '/'
Expand Down
12 changes: 6 additions & 6 deletions kernel_headers/gnu-as/zos_video.asm
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
; Get the video driver capabilities, such as the supported modes, the supported
; colors, scrolling, etc...
; TODO: Define the attributes.
.equ CMD_GET_ATTR, 0 ; See attribute structure
.equ CMD_GET_ATTR, 0 ; See attribute structure

; Get the area bounds of the current display mode
; Parameter:
; DE - Address of area_t structure (defined below)
; It will be filled by the driver.
.equ CMD_GET_AREA, 1
.equ CMD_GET_AREA, 1

; Get the current position (X,Y) of the cursor. They represent an index,
; so they start at 0.
Expand All @@ -28,7 +28,7 @@
.equ CMD_GET_CURSOR_XY, 2

; Set the (non-constant) attributes.
.equ CMD_SET_ATTR, 3
.equ CMD_SET_ATTR, 3

; Set the (X,Y) position of the cursor. If the given coordinate is out of bounds,
; the driver can either return an error or accept it and adjust it to the end
Expand All @@ -46,16 +46,16 @@
; Parameters:
; D - Background color
; E - Foreground color
.equ CMD_SET_COLORS, 5
.equ CMD_SET_COLORS, 5

; Clear the screen and reposition the cursor at the top left.
.equ CMD_CLEAR_SCREEN, 6
.equ CMD_CLEAR_SCREEN, 6

; Resets the screen to the same state as on boot up
.equ CMD_RESET_SCREEN, 7

; Number of commands above
.equ CMD_COUNT 8
.equ CMD_COUNT, 8


; List of colors to pass to CMD_SET_COLORS command.
Expand Down

0 comments on commit 9685fa6

Please sign in to comment.