|
Atari coding BBS
Really weird bug on 1.62 STe |
Posted by: Sdw
|
Dec,31.2014-01:40
|
I crossdev on PC (using a combination of VBCC C-code and assembler), testing is done in Hatari, and every now and then I copy to a disk and run on my STe to see it on the real thing.
My Hatari setting has been a vanilla ST w. 2.06 TOS.
My STe is a 4Mb upgraded and has 1.62 TOS.
Everything has worked fine, then suddenly code that worked fine in emulator bombed out on the STe. I started copying and testing on real HW more often, and while by commenting away some code I could get it to run without bombing, it was completely senseless, for example adding simple lines like:
y=frame%512;
if(y==0) waitvbl();
Would make the STe bomb, while it ran fine in Hatari. I was very confused, as normally emulators nowadays are fairly reliable, and code that's running in emu often works on real hw without problems.
Scratching my head, I configured Hatari to run the exact same config as my real machine (STe w. TOS 1.62) and now I am getting:
"Detected double bus error => CPU halted! Emulation needs to be reset."
So, at least I can reproduce the error in the emulator as well, but I am completely baffled to what it is that I'm doing wrong, and why it is a problem ONLY on 1.62?!?
Any gurus who can point me in at least some direction to start looking for the problem? Does this cryptic error "double bus" give any hint?
|
[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.
|