gnupic: Newbie struggling with gpsim
Subject:
Newbie struggling with gpsim
From:
Declan Moriarty ####@####.####
Date:
4 Jul 2002 15:17:34 -0000
Message-Id: <02070417044000.01032@genius.chateau.dec>
I got gpsim fired up and running on the default processor, and successfully
simulated this little routine, changing values, stepping, etc. Closed the
windows, (Didn't hit "Quit gpsim")and now I get this:
[root@genius /root]# gpsim /ddos/hex/decequals.asm
gpsim - the GNUPIC simulator
version: 0.20.14
type help for help
gpsim> eXdbm : No error
Segmentation fault (core dumped)
[root@genius /root]# gpsim /ddos/hex/decequals.cod
gpsim - the GNUPIC simulator
version: 0.20.14
type help for help
gpsim> eXdbm : No error
Segmentation fault (core dumped)
The code is here -
EQUALS:
bcf 0x4f, 0 ;set result bit to not equals
movf 0x30, 0 ; puts number in 0x30 into w
xorwf 0x31, 0 ; xor w with 0x31. Result is 0 if =
btfsc 0x03,2 ; check the zero flag - did the last action set it
bsf 0x4f, 0 ; IF ZERO, set bit 0, 0x4f. Otherwise this is ignored
end
--
Regards,
Declan Moriarty
Applied Researches - Ireland's Foremost Electronic Hardware Genius
A Slightly Serious(TM) Company
Experience is like a comb,
that Life gives you - AFTER all your hair has fallen out!