You will not be able to post if you are still using Microsoft email addresses such as Hotmail etc
See here for more information viewtopic.php?f=20&t=7296
BOOKMARK THIS PAGE !
https://www.exxosforum.co.uk:8085/IP_CHECK/
You can unban yourself if needed. It also sends me reports to investigate the ban.
DO NOT USE MOBILE / CGNAT DEVICES WHERE THE IP CHANGES CONSTANTLY!
At this time, it is unfortunately not possible to whitelist users when your IP changes constantly.
You may inadvertently get banned because a previous attack may have used the IP you are now on.
So I suggest people only use fixed IP address devices until I can think of a solution for this problem!

Issue with Assembler includes (HATARI Linux)

News,announcements,programming,fixes,game patches & discussions.
User avatar
mrbombermillzy
Moderator
Moderator
Posts: 2266
Joined: 03 Jun 2018 19:37

Issue with Assembler includes (HATARI Linux)

Post by mrbombermillzy »

I dont have a Windows machine to test this out on currently, but having crossed over to Linux for my Atari development, Ive come across a strange problem. Not sure if its me missing something obvious or not.

Anyway, the issue: Im attempting to compile a file with Devpac v3.10 which Ive split into other files (for ease of readability).

I INCUDE these files at the exact place that I want the code.

Neither (of the 2 included) files have a DATA or BSS section, so shouldnt need any TEXT section reafirmations after the include directive (although I put them in just in case, to no avail.)

This should be straightforward, but when I segregated the included routines out of the main build, they were not actually included: The program compiled and ran, but did not do the tasks in the included file. I even changed the directory to search to the same as the main file one and also set assembly environment up for INCLUDE directory to match in Devpacs editor.

I then even added a Devpac syntatic error in the 2nd include, for the compile pass to trip on, but it didnt even see it.

The only thing that comes to mind as a long shot possibility is the Atari<>*nix pathname reverse slash being a problem on file access on a HATARI drive?
:shrug:

Has anyone else had this problem?

Im using HATARI v2.4.1.
User avatar
exxos
Site Admin
Site Admin
Posts: 28160
Joined: 16 Aug 2017 23:19
Location: UK

Re: Issue with Assembler includes (HATARI Linux)

Post by exxos »

I've had gayness as to where in the code the included files are placed :shrug: I remember it drove me nuts for ages. Think HISOFT was picky as well.

I remember I had to move a lot of routines to the start of the main source code because of bizzare include related issues. But can't remember much about it now :(
User avatar
TheNameOfTheGame
Posts: 188
Joined: 05 Dec 2017 17:49
Location: Almost Heaven, West Virginia

Re: Issue with Assembler includes (HATARI Linux)

Post by TheNameOfTheGame »

Well, can't comment on the devpac issue there, but if you are using linux for dev, then vasm will do native assembly with devpac compatibility with the -devpac switch.

Code: Select all

vasm -Ftos -devpac -o TEST.TOS TEST.S
User avatar
mrbombermillzy
Moderator
Moderator
Posts: 2266
Joined: 03 Jun 2018 19:37

Re: Issue with Assembler includes (HATARI Linux)

Post by mrbombermillzy »

@exxos Thanks for the gayness confirm. :lol:

You have saved me also going nuts.

I was thinking it could have been Linux, as Ive not had issue with it before now (recently crossed over from M$).

I will try to shuffle the code around then and see what happens.
TheNameOfTheGame wrote: 04 Oct 2023 19:59 Well, can't comment on the devpac issue there, but if you are using linux for dev, then vasm will do native assembly with devpac compatibility with the -devpac switch.

Code: Select all

vasm -Ftos -devpac -o TEST.TOS TEST.S
Thanks for the tip, but (as usual for me) Im going to be moving over to the 'real thing' in a few weeks (after the OS specific stuff is done), as the HW Im experimenting with is not emulated anyway.
User avatar
exxos
Site Admin
Site Admin
Posts: 28160
Joined: 16 Aug 2017 23:19
Location: UK

Re: Issue with Assembler includes (HATARI Linux)

Post by exxos »

mrbombermillzy wrote: 04 Oct 2023 20:06 I will try to shuffle the code around then and see what happens.
Also had odd path related problems. Might have mentioned that before with forward & back slashes doing different things and there's the path in the code for the includes, then paths in devpac for includes. :crazy:
User avatar
mrbombermillzy
Moderator
Moderator
Posts: 2266
Joined: 03 Jun 2018 19:37

Re: Issue with Assembler includes (HATARI Linux)

Post by mrbombermillzy »

exxos wrote: 04 Oct 2023 20:12 Also had odd path related problems. Might have mentioned that before with forward & back slashes doing different things and there's the path in the code for the includes, then paths in devpac for includes. :crazy:
Hmm. I will have to see what happens when I move over to the swanky new H5+TF536 dev machine next week.

I cant wait! :girldance:

EDIT: @exxos if it unscrambles your brain a bit, any commands in the code (like you mentioned INCLUDES above or processor type, etc) override anything set in the Devpac configuration pages.
User avatar
sporniket
Site sponsor
Site sponsor
Posts: 1161
Joined: 26 Sep 2020 21:12
Location: France

Re: Issue with Assembler includes (HATARI Linux)

Post by sporniket »

Another thing to take into account, maybe : do you use harddrive gemdos emulation (i.e. a native folder is mapped to a hardrive for TOS) or do you use an acsi hard-drive image ? I've heard that gemdos emulation can have some strange behaviour sometimes.
User avatar
mrbombermillzy
Moderator
Moderator
Posts: 2266
Joined: 03 Jun 2018 19:37

Re: Issue with Assembler includes (HATARI Linux)

Post by mrbombermillzy »

@sporniket Yes. Ive always used GEMDOS drive emulation, but I have used includes several times over the years with no problems.

The switch to Linux appeared like the trigger (the differing use of the forward/back slash with filenames being a problem internally to HATARI looking like a potential culprit, I would have guessed), but perhaps that is not the case then.

I will see if exactly the same problematic file setup causes the same problems on real HW and investigate further from there.

Return to “SOFTWARE PROGRAMMING & DISCUSSION”

Who is online

Users browsing this forum: CCBot and 5 guests