From 02657c3fcd3fc89fa66f542db33fd914a57eafc0 Mon Sep 17 00:00:00 2001 From: deadvey Date: Tue, 3 Mar 2026 19:13:16 +0000 Subject: [PATCH] Added California & Colarado laws, copied & modifed from https://github.com/c3d/db48x/blob/stable/LEGAL-NOTICE.md --- README.md | 9 +++++++++ log.txt | 0 source/kernel/features/keyboard.asm | 22 +++++++++++----------- to_implement | 0 4 files changed, 20 insertions(+), 11 deletions(-) delete mode 100644 log.txt delete mode 100644 to_implement diff --git a/README.md b/README.md index 813aeff..bcd2e5d 100644 --- a/README.md +++ b/README.md @@ -55,3 +55,12 @@ docs on writing BASIC code. In order to create new
files, place them in the /data/ directory, note the file
names are limited to 11 characters due to FAT12 limitations
(8 for the name and 3 for the extension). + +# Legal information +As a consequence of recent legislative activity in [California][https://leginfo.legislature.ca.gov/faces/billTextClient.xhtml?bill_id=202520260AB1043] and [Colororado][https://leg.colorado.gov/bill_files/111670/download]: + +* California residents may no longer use CrawOS after Jan 1st, 2027. +* Colorado residents may no longer use CrawOS after Jan 1st, 2028. + +CrawOS is probably an operating system under these laws. However, it +does not, cannot and will not implement age verification. diff --git a/log.txt b/log.txt deleted file mode 100644 index e69de29..0000000 diff --git a/source/kernel/features/keyboard.asm b/source/kernel/features/keyboard.asm index ad5e112..62ec634 100644 --- a/source/kernel/features/keyboard.asm +++ b/source/kernel/features/keyboard.asm @@ -20,8 +20,8 @@ os_read_input: keyboard_display_input: pusha mov di, ax - mov ax, bx ; Lazy TODO - mov cx, [prompt_length] + mov ax, bx + mov bx,20 .loop: jmp .check_key_pressed @@ -40,11 +40,11 @@ keyboard_display_input: cmp al, 1Bh je .esc_key - cmp cx, 0 - jb .check_key_pressed + dec bx + + cmp bx, 0 + jae .print_current_input ; Echo the user input back - call .print_current_input - dec cx jmp .check_key_pressed .esc_key: @@ -57,8 +57,9 @@ keyboard_display_input: ret ; Return to the parent function (whatever that may be) .backspace: - jmp .move_cursor_back ; then .move_cursor_back - jmp .loop ; Else .loop + cmp bx, 20 ; Cannot backspace if the cursor is at the start + jb .move_cursor_back ; then .move_cursor_back + jmp .loop ; Else .loop .move_cursor_back: mov ah, 0Eh @@ -70,16 +71,15 @@ keyboard_display_input: mov al, 08h int 10h + inc bx dec di jmp .loop .print_current_input: ; Echo back that character and return the key inputing stosb - mov ah, 0Eh int 10h - - ret + jmp .check_key_pressed keyboard_get_cursor_pos: ;TODO ret diff --git a/to_implement b/to_implement deleted file mode 100644 index e69de29..0000000