1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-20 02:32:36 +00:00
kickc/src/test/ref/const-mult-div.asm

12 lines
214 B
NASM
Raw Normal View History

2019-02-17 23:12:29 +00:00
// Test a constant with multiplication and division
.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
main: {
.const b = 6*$e/3+mod($16,3)
.label screen = $400
lda #b
sta screen
rts
}