diff options
| Commit | c1f0d07847f3652f1f4e63015f928b9a1c1bb825 (patch) | |
|---|---|---|
| Author | 2025-07-31 09:44:21 +0300 | |
| Committer | 2025-07-31 09:44:21 +0300 | |
| Files | a947f8ab0e5025edc6d91dd6f0d18afd717d3d9c /isprime/kernal.oph.s | |
| c64-programs-c1f0d07847f3652f1f4e63015f928b9a1c1bb825.tar c64-programs-c1f0d07847f3652f1f4e63015f928b9a1c1bb825.tar.gz c64-programs-c1f0d07847f3652f1f4e63015f928b9a1c1bb825.zip | ||
| Parent | 28c8c0d08f6d0aa61e49627c8b920c7dfee83dca (diff) | |
feat(isprime): Implemented simple conditional
1 files changed, 17 insertions, 0 deletions
| -rw-r--r-- | isprime/kernal.oph.s | 17 |
diff --git a/isprime/kernal.oph.s b/isprime/kernal.oph.s new file mode 100644 index 0000000..a9fd007 --- /dev/null +++ b/isprime/kernal.oph.s @@ -0,0 +1,17 @@ +.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 + bne _loop ; if (x == 0) break } This allows max 255 character to be read + _done: +.macend + +.macro lowercase + ldx #23 + stx 53272 +.macend |
