So far this is working, but I have a weird fault which makes no sense...
I map the start of each flash bank to these addresses...
FIRMWARE:
Code: Select all
FREG1 = ADDR:[E80000..E8FFFF] & !CPU_AS ; // 00
FREG2 = ADDR:[E90000..E9FFFF] & !CPU_AS ; // 01
FREG3 = ADDR:[EA0000..EAFFFF] & !CPU_AS ; // 10
FREG4 = ADDR:[EB0000..EBFFFF] & !CPU_AS ; // 11
SOFTWARE
Code: Select all
PRINT HEX$(PEEKW(&HE80000)), HEX$(PEEKW(&HE80002))
PRINT HEX$(PEEKW(&HE90000)), HEX$(PEEKW(&HE90002))
PRINT HEX$(PEEKW(&HEA0000)), HEX$(PEEKW(&HEA0002))
PRINT HEX$(PEEKW(&HEB0000)), HEX$(PEEKW(&HEB0002))
And it outputs...
IMG_4745.JPG
However, I don't understand where the bottom row "3EBC 10" is coming from... I mean address $EB0000 isnt used for anything else is it ?! It should be reporting the same as the top row "602E 206" which is the start of 206 ROM... I have 206 programmed in bank 1 and bank 4, so bank 4 should report the same but it does not :(
Incidentally, the middle two rows are flash memory which has not yet been programmed, so will of course show "FFFF".
EDIT:
I dumped the next byte which was "4EB9" These are listed in TOS though shouldn't be showing as the start of the ROM :shrug:
Capture.JPG
EDIT2:
So I found I was decoding to large a bank elsewhere in the firmware..
So updated it to
Now I am reporting "FFFF" everytime now :roll: So maybe my register decoding from earlier isn't doing what it should be.
EDIT3:
I forgot to enable the flash :lol: :roll: So now decoding is working again, but still have that stupid "3EBC" thing :WTF:
EDIT4:
I programed TOS104 into BANK2 and now get "91C5" which isn't right either... so I must be doing something dumb somewhere :roll:
EDIT5:
Pondering that I am switching A16 on the ROM when shouldn't be...
Capture.JPG
EDIT6:
Code: Select all
*
22221111111111
321098765432109876543210
E80000 111010000000000000000000 ok
E90000 111010010000000000000000 X
EA0000 111010100000000000000000 ok
EB0000 111010110000000000000000 X
EC0000 111011000000000000000000 ok
EE0000 111011100000000000000000 ok
So some tweaks to not use address ranges which switch A16.. now I get this :roll:
TOS206 looks correct for first row, TOS104 should be in second, 3rd blank "FFFF" and 4th TOS206 again ... just getting back odd numbers again.. I guess BANK1 & 3 are actually correct.. so many I shouldn't be using A17 either ... Which means I basically run out of address ranges as I need 17 zeros and 4 banks of them :roll:
IMG_4746.JPG
You do not have the required permissions to view the files attached to this post.