Page 77 of 97
Re: ST536 STE EDITION
Posted: 12 Jun 2025 20:12
by exxos
Wow GPT4 fixed it...
1.PNG
So TTram found..
IMG_3377.JPG
No TTram found.
IMG_3378.JPG
Now I can use that logic for my fast rom stuff soon :D
44.PNG
Re: ST536 STE EDITION
Posted: 13 Jun 2025 06:34
by Cyprian
Wow GTP can be useful though.
Did you paste it all the code or just part of it?
Re: ST536 STE EDITION
Posted: 13 Jun 2025 09:27
by exxos
Cyprian wrote: 13 Jun 2025 06:34
Wow GTP can be useful though.
Did you paste it all the code or just part of it?
By all the code you mean the whole operating system ? There is a limit on what you can paste and the more complicated problem is that more likely you will not find issue I think..
I just pasted in the TTram test routines, which is about 1-2 pages of code.
Grok wrote my ROMCOPY program. But on other things it makes mistakes and refuses to see them. If I then copied the same question to GPT, it generally finds the problem. But GPT seems to really struggle with writing 68k code...
For example,Grok was trashing A0, it was clear even to me it was wrong, but grok did whole analysis of NSAID in bold letters there is no mistake! The same question in GPT suggest there was a mistake and I should use another registers such as A3. I asked to fix the code and it did and it worked afterwards.
Other times neither AI can solve the problems or write working code. I think the longer the conversation the more confused the AI's become. So it seems best to start a new conversation for each problem and not let the conversation get to long. It makes sense as well because browsers slowdown longer the conversation gets. I would have thought after like 20 years this problem could have been solved by now :roll:
Re: ST536 STE EDITION
Posted: 13 Jun 2025 15:31
by exxos
Assembly code is hard work ! :roll: Cant call a subroutine within the bus error handler.. super sulky where you put code and data...
My EPROM eraser has been on continuously for the past two days...
IMG_3379.JPG
Re: ST536 STE EDITION
Posted: 13 Jun 2025 15:38
by stephen_usher
exxos wrote: 13 Jun 2025 15:31
Assembly code is hard work ! :roll: Cant call a subroutine within the bus error handler.. super sulky where you put code and data...
You sort of can if instead of jsr you use bsr and place the return address in a register (and your subroutine knows about this calling system).
Also remember that you may be using a different stack, the supervisor one.
In the last week I've been doing a lot of m68k assembler in regions where I don't have a stack (or any other potentially working memory).
Re: ST536 STE EDITION
Posted: 13 Jun 2025 16:50
by exxos
I don't get it :pullhair:
Basically..
Then a bit later.
Code: Select all
clr.b error_flag /* clear error flag */
Then a lot later in the code.
It crashes like error_flag is not defined ?!
:dizzy:
Re: ST536 STE EDITION
Posted: 13 Jun 2025 18:34
by exxos
I think the some bizarre reason the error flag is being allocated into ROM.. As I can read from it, but not write to it.
So if I do
Code: Select all
error_flag: equ $00010000 /* safe ST-RAM location */
It then works.
Maybe a bit naughty doing that, But ST-RAM hasn't even been tested at that point.. which could be part of the problem :shrug:
The flag will get trashed when ST-RAM test happens, but it doesn't get used again after that anyway.
Re: ST536 STE EDITION
Posted: 13 Jun 2025 18:45
by exxos
Can't test fully in Hatari... but it gets the messages kicked out.. so it *should* do the ROM copy on the STE536.. need to burn the ROM and find out next...
1.PNG
2.PNG
Re: ST536 STE EDITION
Posted: 13 Jun 2025 19:40
by exxos
SUCCESS!
Forced no TTram in firmware.. So this is correct..
IMG_3380.JPG
Enabled TTram in firmware and this is correct..
IMG_3382.JPG
.. and proof ROM speed is almost 800% now!
IMG_3383.JPG
I need to do a ton of code tidying next :lol: It can be next weeks problem ! :lol:
Oddly the colour changes don't work in Hatari at all :shrug:
Thanks for flying exxos assembly experimental airways.
exxos over and out.
:dizzy:
Re: ST536 STE EDITION
Posted: 13 Jun 2025 20:50
by Cyprian
congrats @exxos !!!