diff options
| author | andromeda <andromeda@lenovo> | 2026-03-12 13:54:44 +0100 |
|---|---|---|
| committer | andromeda <andromeda@lenovo> | 2026-03-12 13:54:44 +0100 |
| commit | e775b05f85f689c22dac731e42f1540ca8b2e60c (patch) | |
| tree | cc4d0cc7cc785bfc630044172dfeeaead55cdcfe /twasm/asm/main.asm | |
| parent | a84f2d7453e6695a677045a479667c3881d773f3 (diff) | |
add print.* modes
Diffstat (limited to 'twasm/asm/main.asm')
| -rw-r--r-- | twasm/asm/main.asm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/twasm/asm/main.asm b/twasm/asm/main.asm index c8dd826..fa5c3af 100644 --- a/twasm/asm/main.asm +++ b/twasm/asm/main.asm @@ -793,6 +793,38 @@ print: pop rax pop rdx ret + .debug: + push rsi + mov rsi, .debug_msg + call print + pop rsi + call print + ret + .error: + push rsi + mov rsi, .error_msg + call print + pop rsi + call print + ret + .test: + push rsi + mov rsi, .test_msg + call print + pop rsi + call print + ret + .warn: + push rsi + mov rsi, .warn_msg + call print + pop rsi + call print + ret + .debug_msg db "[DEBUG]: ", 0x00 + .error_msg db "[ERROR]: ", 0x00 + .test_msg db "[TEST]: ", 0x00 + .warn_msg db "[WARN]: ", 0x00 ; ------------------------------------------------------------------------------ ; halt |
