1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2025-02-21 04:29:14 +00:00
SixtyPical/eg/compare.60pical

25 lines
316 B
Plaintext
Raw Normal View History

2014-03-31 23:14:07 +01:00
reserve byte m_high
reserve byte m_low
reserve byte n_high
reserve byte n_low
routine compare_16_bit {
lda m_high
cmp n_high
if beq {
2014-03-31 23:14:07 +01:00
lda m_low
cmp n_low
} else {
}
}
routine compare_16_bit {
lda >m
cmp >n
if beq {
lda <m
cmp <n
} else {
}
}