Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic upstart doesn't match kickassembler? #59

Open
nurpax opened this issue Aug 5, 2019 · 1 comment
Open

basic upstart doesn't match kickassembler? #59

nurpax opened this issue Aug 5, 2019 · 1 comment

Comments

@nurpax
Copy link
Owner

nurpax commented Aug 5, 2019

This is the start macro I've been using. It seems to work but doesn't give identical results to KA:

!filescope c64
!macro basic_start(addr) {
* = $801
    !byte $0c, $08, $00, $00, $9e
    !for d in [10000, 1000, 100, 10, 1] {
        !if (addr >= d) {
            !byte $30 + (addr/d)%10
        }
    }
    !byte 0, 0, 0
}
@nurpax
Copy link
Owner Author

nurpax commented Aug 5, 2019

This gives identical results:

!filescope c64
!macro basic_start(addr) {
* = $801
    !byte $0b, $08, $0a, $00, $9e
    !for d in [10000, 1000, 100, 10, 1] {
        !if (addr >= d) {
            !byte $30 + (addr/d)%10
        }
    }
    !byte 0, 0, 0
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant