EASy68K
http://www.easy68k.com/EASy68Kforum/

Possible Simulator btst.b Issue
http://www.easy68k.com/EASy68Kforum/viewtopic.php?f=8&t=1108
Page 1 of 1

Author:  aboxer [ Wed May 09, 2012 4:11 pm ]
Post subject:  Possible Simulator btst.b Issue

The simulator does not set the Z bit correctly for the following snip of code.

move.l #$7de84d3c, $c0
move.l #$ff62f97c,d0
btst.b d0,$c0

The 68000 spec indicates that d0 will be used modulo 8 to select the
bit at address $c0 to test. This should be bit 2 of #$7d and the CCR
should have Z=0. The simulator result is Z=1.

thanks,
aaron boxer
Millogic

Author:  clive [ Thu May 10, 2012 2:29 am ]
Post subject: 

Z=0 on IDE68K, will review with HW tomorrow morning.

EDIT: HW has Z=0

Author:  profkelly [ Mon May 14, 2012 1:34 pm ]
Post subject: 

Corrected in Sim68K v5.12.4

Correction:
CODE7.CPP: bit_no was signed long, changed to unsigned long.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/