View Single Post
Old 7th Dec 2022, 9:06 pm   #83
Pernod70
Triode
 
Join Date: Nov 2022
Location: Croydon, Surrey, UK
Posts: 37
Default Re: How do I convert hex files to binary for use in the MK14 mame VDU emulator?

The minefield binary loads fine at f1f, I can only think that 777xxxx was also specifying a length to load which is not required.

With the binary loaded and executing at fbd it doesn't get very far. I'm not familiar with SC/MP (I'm more 6502) but am wondering if there's an emulation issue. Here's a trace of when I think it goes off the rails:
Code:
0FBF: xpah 2
0FC0: ldi $00
0FC2: xpal 2
0FC3: ldi $fd
0FC5: st +$22(2)
0FC7: ldi $be
0FC9: st +$20(2)
0FCB: ldi $00
0FCD: cas
0FCE: ld -$76
0FD0: scl
0FD1: cai $05
0FD3: st -$7b
0FD5: st -$75
0FD7: ldi $0b
0FD9: xpah 2
0FDA: ldi $00
0FDC: xpal 2
0FDD: ldi $20
0FDF: st @+$01(2)
0FE1: xpal 2
0FE2: jnz -$08
0FDC: xpal 2
0FDD: ldi $20
0FDF: st @+$01(2)
0FE1: xpal 2
0FE2: jnz -$08

   (loops for 1270 instructions)

0FE4: jmp -$4e
0F98: ldi $00
0F9A: xpah 3
0F9B: ldi $22
0F9D: xpal 3
0F9E: ldi $20
0FA0: xpal 0
0F20: xppc 3
0023: st -$27
0025: lde
0026: st -$29
0028: csa
0029: st -$2b
002B: xpah 1
002C: st -$34
002E: xpal 1
Is it interpreting the XPPC 3 correctly?
Pernod70 is offline