By the way, what should be the value for register A1 after returning from IO.FLINE?
If I return a 9 byte line, A1 return value should be input value A1+9 ?
IO.FLINE doubts and emulation
- chernandezba
- Chuggy Microdrive
- Posts: 54
- Joined: Thu Dec 15, 2016 7:10 pm
Re: IO.FLINE doubts and emulation
#1 You don't seem to be tracing TRAP #4 - you should, although do don't need to emulate anything here. I'd expect a TRAP #4 to happen before the IO.FLINE traps. Also, in all of your logs, you should dump a6, as this might be part of the address after a TRAP #4
In the next line, it's starting to get weird:
I guess your problem occurs exactly between those two traces and would start to investigate there.
Tobias
This one looks pretty reasonable - (a6,a1) is $3f368, a reasonable buffer address to load something to, also somewhat aligns with what we see in the MT.ALBAS trap.chernandezba wrote: Paranoid: Trap 3. D0=02H A0=00000020H A1=00000100H A6=0003F268H PC=0032AH is :
Paranoid: Trap 3: IO.FLINE. fetch a line of bytes
In the next line, it's starting to get weird:
Why did a6 suddenly change to $28000? If your trap emulation really changed something at $28000 + $100, you most probably already killed the system (explaining why you receive some trash as the channel name later on).chernandezba wrote: Paranoid: IO.FLINE. Channel ID=32 Base of buffer A1=00000100H A3=0003FFF0H A6=00028000H
Paranoid: Returning IO.FLINE from our microdrive channel without error
I guess your problem occurs exactly between those two traces and would start to investigate there.
Tobias
ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
Re: IO.FLINE doubts and emulation
Exactly. Irrespectively of whether you had a buffer address relative to A6 or not, you should increment a1 by the number of bytes put into the buffer.chernandezba wrote:By the way, what should be the value for register A1 after returning from IO.FLINE?
If I return a 9 byte line, A1 return value should be input value A1+9 ?
ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
- chernandezba
- Chuggy Microdrive
- Posts: 54
- Joined: Thu Dec 15, 2016 7:10 pm
Re: IO.FLINE doubts and emulation
I've made it!!!
I was geting an incorrect value for A6, correct value was 0003F368H
I was geting an incorrect value for A6, correct value was 0003F368H
-
- QL Wafer Drive
- Posts: 1068
- Joined: Sat Oct 25, 2014 9:53 am