diff options
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 |
