Help to compile a source file

General Discussion, STOS.

Moderator: troed

User avatar
exxos
Site Admin
Site Admin
Posts: 23795
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Help to compile a source file

Post by exxos »

can anyone compile Troed's wait state detect program for me ?


https://github.com/troed/WSDETECT


I also wonder if someone could tweak that to actually output the values it read rather than the expected values so I can see how far things are actually out on the suska core.


EDIT:

Finally found the PRG.. still would be useful for a "debug" version of it though...

WSDETECT.ZIP
(4.37 KiB) Downloaded 176 times
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
thorsten.otto
Posts: 148
Joined: Mon Nov 04, 2019 2:20 am

Re: Help to compile a source file

Post by thorsten.otto »

Haven't tried yet, but looks like being compilable by devpac, maybe pasm with a few tweaks.
User avatar
exxos
Site Admin
Site Admin
Posts: 23795
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Help to compile a source file

Post by exxos »

If anyone could add a colour background change that would be useful as I cannot see the text output to the screen most of the time because of bit-plane shifts :roll: Red of WS ? or green for a valid wait state would help no end.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
thorsten.otto
Posts: 148
Joined: Mon Nov 04, 2019 2:20 am

Re: Help to compile a source file

Post by thorsten.otto »

I understand assembler, but i don't pretend to understand what this special kind of program is trying to achieve ;)
User avatar
exxos
Site Admin
Site Admin
Posts: 23795
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Help to compile a source file

Post by exxos »

thorsten.otto wrote: Fri Feb 21, 2020 2:13 am I understand assembler, but i don't pretend to understand what this special kind of program is trying to achieve ;)
It outputs the wakeup state of the machine. Demo coders build fullscreen stabilisers based on its value. I don't really understand it myself. http://www.atari-wiki.com/index.php/ST_STE_Scanlines
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
czietz
Posts: 550
Joined: Sun Jan 14, 2018 1:02 pm

Re: Help to compile a source file

Post by czietz »

In very high-level terms, I explained what it does in this other thread: https://www.exxosforum.co.uk/forum/viewt ... =10#p33642
beel1
Posts: 55
Joined: Mon Feb 25, 2019 10:36 pm

Re: Help to compile a source file

Post by beel1 »

Here is a quick and dirty version that displays the counter in hex. I will publish the source code later (I've never used github before :D )
It seems to work as expected on Steem SSE 4 (I only have STEs)
Attachments
WS.zip
(724 Bytes) Downloaded 158 times
User avatar
exxos
Site Admin
Site Admin
Posts: 23795
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Help to compile a source file

Post by exxos »

Thanks, seems to work. I assume in the image below WS2 means it counted 36 bytes :shrug:

IMG_4900.JPG
IMG_4900.JPG (57 KiB) Viewed 4079 times

and WS ? gives 0x0000 but its always hard to read which is part of the problem... Not sure is possible to actually output how many bytes accounted regardless of it translating it to the "WS" number ?

IMG_4901.JPG
IMG_4901.JPG (52.53 KiB) Viewed 4079 times
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
beel1
Posts: 55
Joined: Mon Feb 25, 2019 10:36 pm

Re: Help to compile a source file

Post by beel1 »

The computed value is displayed in any case. I get "WS? (0x00AE)" on STE in Hi for example.
It is the value in d4 as used in the switch case at lines 244-252 converted in ASCII
User avatar
exxos
Site Admin
Site Admin
Posts: 23795
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Help to compile a source file

Post by exxos »

Wonder why it says 0x0000 on mine then ?
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
Post Reply

Return to “SOFTWARE”