diff options
| Commit | 4b4c1a130a3ef64f3f788e2ebd46cfc3b0e121fc (patch) | |
|---|---|---|
| Author | 2025-08-01 12:40:20 +0300 | |
| Committer | 2025-08-01 12:40:20 +0300 | |
| Files | 721baa2ee4f2c2f5ab3d402e494b1408ce710e8c /isprime/kernal.oph.s | |
| c64-programs-4b4c1a130a3ef64f3f788e2ebd46cfc3b0e121fc.tar c64-programs-4b4c1a130a3ef64f3f788e2ebd46cfc3b0e121fc.tar.gz c64-programs-4b4c1a130a3ef64f3f788e2ebd46cfc3b0e121fc.zip | ||
| Parent | cf970656bbca915938104a83290a358ba3c4bf17 (diff) | |
feat(isprime): Clean up and add comments for implementation
1 files changed, 3 insertions, 0 deletions
| -rw-r--r-- | isprime/kernal.oph.s | 3 |
diff --git a/isprime/kernal.oph.s b/isprime/kernal.oph.s index 5dda4a4..8d4a69e 100644 --- a/isprime/kernal.oph.s +++ b/isprime/kernal.oph.s @@ -14,13 +14,16 @@ tax .macend +; print value (byte) at address as a number .macro printm lda _1 jsr printa .macend +; print register x as a number printx: txa ; a = x +; print register a as a number printa: .scope cmp #10 ; if (a < 10) |
