From 4b4c1a130a3ef64f3f788e2ebd46cfc3b0e121fc Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 1 Aug 2025 12:40:20 +0300 Subject: feat(isprime): Clean up and add comments for implementation --- isprime/kernal.oph.s | 3 +++ 1 file changed, 3 insertions(+) (limited to 'isprime/kernal.oph.s') 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) -- cgit v1.3.1-26-gb76a