diff options
fix(hello_world): Add .s to filename extension
So files are correctly recongized as assembly
1 files changed, 12 insertions, 0 deletions
| -rw-r--r-- | hello_world/kernal.oph.s | 12 |
diff --git a/hello_world/kernal.oph.s b/hello_world/kernal.oph.s new file mode 100644 index 0000000..086d3c1 --- /dev/null +++ b/hello_world/kernal.oph.s @@ -0,0 +1,12 @@ +.alias putchar $FFD2 + +; print [null-terminated string start address] +.macro print + ldx #0 ; x = 0 + _loop: lda _1, x ; while (_1[x] != 0) { + beq _done + jsr putchar ; putchar(_1[x]) + inx ; ++x + jmp _loop ; } + _done: +.macend |
