exxos blog - random goings on

Blogs & guides and tales of woo by forum members.
User avatar
exxos
Site Admin
Site Admin
Posts: 24083
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

HigashiJun wrote: Fri Dec 23, 2022 3:05 am The joy of programming...

:D
Still hate programming :lol:
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
HigashiJun
Posts: 1286
Joined: Fri Jun 19, 2020 7:21 am
Location: Tokyo

Re: exxos blog - random goings on

Post by HigashiJun »

exxos wrote: Fri Dec 23, 2022 10:23 am
HigashiJun wrote: Fri Dec 23, 2022 3:05 am The joy of programming...

:D
Still hate programming :lol:
Then this one suits you better:

Prog2.jpg
Prog2.jpg (125.78 KiB) Viewed 814 times
;)
User avatar
exxos
Site Admin
Site Admin
Posts: 24083
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

HigashiJun wrote: Fri Dec 23, 2022 10:41 am Then this one suits you better:
:bravo: :lolbig:
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
exxos
Site Admin
Site Admin
Posts: 24083
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

So starting to patch back in the test routines. Of the time text is misaligned (one character to the right to many) and other times like in the example below, I run the first test and it put the text in the wrong boxes and even included to 0% scores.. bonkers.

Capture.PNG
Capture.PNG (112.82 KiB) Viewed 796 times

Now need to work out why those routines are now misbehaving :roll:
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
exxos
Site Admin
Site Admin
Posts: 24083
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

Got another mystery now it seems :roll:

I have it outputting a bit of debug information in the main event loop.

Code: Select all

MAINID	,our_aeshandle	,mess(3)	,e
 0             1             0             0 
mess(3) is what evnt_multi is returning when I click on the main window or a test. It does not match the AES handle of the window.

Then if I move the window starts to behave correctly..

Code: Select all

MAINID	,our_aeshandle	,mess(3)	,e
 0             1             1             16 
BUT.

The window move functions do this, which doesn't match to start with. So should not be able to even move the window in the first place :pullhair:

Code: Select all

if mess(3)=our_aeshandle
So for whatever reason the AES does not see any activity on the window whatsoever other than the title bar clicks :shrug:

EDIT:

I could just remove the handle check, then the mouse clicks register as expected. But I don't think it is really safe to do this with key presses as well. As it would be capturing "ANY" key presses the system sees and GB7 would process them keypresses even though it is not in focus. In actual fact I think the original GB6 I did probably suffer from that problem :shrug:

EDIT2:

Just tried my multitasking environment and pressing "A" selects stuff on the desktop and doesn't trigger GB6 events. Maybe you're not supposed to check the handle.. Will have to see what other program examples do..
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
exxos
Site Admin
Site Admin
Posts: 24083
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

So it looks like the handle is only checked when clicking the window for moving it for example.

This comes from the AESDEMO.BAS examples. I assume this is the correct method and I am not supposed to be checking the handle for events inside the window.. Bizarre...

Code: Select all

 IF mes_type>=WM_TOPPED AND mes_type<=WM_MOVED THEN
	IF mess(3)<>our_aeshandle THEN EXIT SUB	'its not our window
 END IF
 SELECT CASE mes_type
 CASE MN_SELECTED:
	' its a menu
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
exxos
Site Admin
Site Admin
Posts: 24083
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

Well I found why the main window figures were not updating correctly :lol: :roll:

Capture.PNG
Capture.PNG (141.94 KiB) Viewed 768 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
exxos
Site Admin
Site Admin
Posts: 24083
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

Puzzling over this now. As GB must be some internal number as it seems to vary.

Code: Select all

MAX_PROGS=PEEKW(PEEKL(GB+4)+2
The accompanying code is basically..

Code: Select all

IF max_progs>1 THEN
	IF GETCOOKIE("MagX",dum&) THEN cookie_tasking$="MagiC Multitasking O/S" : EXIT FUNCTION
	IF GETCOOKIE("Gnva",dum&) THEN cookie_tasking$="Geneva Multitasking O/S" : EXIT FUNCTION
	IF GETCOOKIE("MINT",dum&) THEN cookie_tasking$="MultiTOS O/S (MINT)" : EXIT FUNCTION
ELSE
	cookie_tasking$="Standard TOS Single tasking"
END IF
So in TOS206 it outputs "1" in XaAES it outputs "-1" so .... :WTF:
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
stephen_usher
Posts: 5875
Joined: Mon Nov 13, 2017 7:19 pm
Location: Oxford, UK.
Contact:

Re: exxos blog - random goings on

Post by stephen_usher »

-1 would usually denote an error condition.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
User avatar
exxos
Site Admin
Site Admin
Posts: 24083
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: exxos blog - random goings on

Post by exxos »

stephen_usher wrote: Fri Dec 23, 2022 5:06 pm -1 would usually denote an error condition.
ah yep. So no idea about why that errors then. I will just remove that function and not bother with it.
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 “MEMBER BLOGS”