|
Atari coding BBS
Re: CHK/CHK2 instructions |
Posted by: earx
|
May,11.2005-10:36
|
hey there pep! :) still improving frontier i see? :))
from http://www.freescale.com/files/32bit/doc/ref_manual/MC68000UM.pdf
this gives the specs:
instr: CHK
discr: If Dn < 0 or Dn > Source then TRAP
format: CHK <ea>,Dn
that means that it can be replaced with:
cmp <ea>,dn
bcs.s range_ok
; chk exception code in here
range_ok:
the CHK exception vector may be found at $18 in the low memory.
it might be best to check what braben puts there, if he does that at all, and transplant this to your own subrout?
|
[All messages in this thread] [Start new thread]
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|