diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-07 00:02:00 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-07 00:02:00 +1000 |
| commit | 33e1c5fc6e37549b4eba833ae7e534f9da250b10 (patch) | |
| tree | 051c846326eae94712337baf4ac65ce837d02b95 /ROMs/hello_c.asm | |
| parent | 7a8d2bcd75d88a5429937bf551878c55e1dcf0fd (diff) | |
added binary, logical and bitwise operators to compiler
Diffstat (limited to 'ROMs/hello_c.asm')
| -rw-r--r-- | ROMs/hello_c.asm | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ROMs/hello_c.asm b/ROMs/hello_c.asm index 292b99a..8cdf58b 100644 --- a/ROMs/hello_c.asm +++ b/ROMs/hello_c.asm @@ -1,7 +1,8 @@ _main: -ADD 1, 2 -SUB 4, 1 -MUL AX, AX -MOV AX, V0 -RET + push 0 + mov 1, V1 + pop V0 + or V0, V1 + mov DX, V0 + ret |
