English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 1673
Search took 0.14 seconds.
Search: Posts Made By: phx
Forum: Coders. General 07 July 2020, 16:30
Replies: 20
Views: 551
Posted By phx
Yes. I don't know any assembler which would do...

Yes. I don't know any assembler which would do so.

Which is exactly the reason I won't implement that (although Antiriad seems to suggest it). :)
The main source directory should be the only one...
Forum: Coders. General 07 July 2020, 13:28
Replies: 20
Views: 551
Posted By phx
Exactly. The current work directory, or source...

Exactly. The current work directory, or source directory, has priority over all other include paths. That's what you would expect and that's how all assemblers work (also PhxAss and vasm).

The...
Forum: Coders. General 05 July 2020, 21:21
Replies: 20
Views: 551
Posted By phx
True. But you can find these reasons for both...

True. But you can find these reasons for both variants.

Depends on the completeness of your substitute, I guess. I'm not sure what you want to say.

Unfortunately there is still no option to...
Forum: Coders. General 05 July 2020, 00:45
Replies: 20
Views: 551
Posted By phx
The base directory may contain some general...

The base directory may contain some general files, and the sub-directories the specialised ones, which still include files from the base.

As you said yourself you will always find situations where...
Forum: Coders. General 04 July 2020, 20:00
Replies: 20
Views: 551
Posted By phx
Yes. Most likely. Correct. The assembler...

Yes. Most likely.

Correct. The assembler should not change your CWD.

As I mentioned in the last reply PhxAss unfortunately only looks in the CWD when you specified a relative path. So you would...
Forum: Coders. General 04 July 2020, 18:46
Replies: 20
Views: 551
Posted By phx
An absolute path is unambigious and references...

An absolute path is unambigious and references one specific file. This will always work.

Usually you don't want absolute paths in your source, because you might want to assemble it on a different...
Forum: Coders. General 04 July 2020, 16:30
Replies: 20
Views: 551
Posted By phx
Yes, order may be important. That was also the...

Yes, order may be important. That was also the bug in the last release. Then I fixed it by reading from the "compile-directory" only, which means "cwd/pathto" in this case. But today I noticed that I...
Forum: Coders. General 04 July 2020, 16:00
Replies: 20
Views: 551
Posted By phx
Include file path priorities for assemblers

Let's assume your shell is in the current work directory, called "cwd". When I assemble a source text in "cwd/pathto/source.asm", from where would you expect that an include-file referenced by
...
Forum: Amiga scene 03 July 2020, 14:10
Replies: 1,220
Views: 87,304
Posted By phx
Right. Same here. I remember I played Doom (2, I...

Right. Same here. I remember I played Doom (2, I think) once or twice on my father's 486, and it was impressive. But it was not a game I absolutely wanted to play. Even more impression on me did the...
Forum: Coders. C/C++ 23 June 2020, 22:07
Replies: 14
Views: 537
Posted By phx
Seems like $VBCC is correct, otherwise the...

Seems like $VBCC is correct, otherwise the compiler wouldn't find proto/socket.h. But I would check if there are any system headers installed at $NDK_INC. As not even exec/types.h is found, probably...
Forum: Coders. C/C++ 23 June 2020, 14:06
Replies: 14
Views: 537
Posted By phx
Strange. Then where does stuff like sockaddr_in...

Strange. Then where does stuff like sockaddr_in or AF_INET come from? :)

I guess that proto/socket.h includes clib/socket_protos.h, which is usually from your installed TCP/IP stack. This will...
Forum: Coders. C/C++ 23 June 2020, 11:06
Replies: 14
Views: 537
Posted By phx
I have no experience with Roadshow yet, but when...

I have no experience with Roadshow yet, but when I compiled with AmiTCP in the past there was always a big problem that it contains standard headers like stdio.h, which would replace vbcc's stdio.h....
Forum: Coders. Releases 16 June 2020, 22:50
Replies: 42
Views: 15,039
Posted By phx
Leffmann has recent MSVC++ vbcc 0.9g project...

Leffmann has recent MSVC++ vbcc 0.9g project files here: https://github.com/Leffmann/vbcc-windows
But there are no compiled binaries for download. I can't help you with it, but somebody certainly...
Forum: Coders. General 07 June 2020, 21:26
Replies: 3
Views: 479
Posted By phx
There is more. Either link with -lamiga,...

There is more.


Either link with -lamiga, as Hedeon pointed out, or include <proto/exec.h> for faster inline system calls. But it doesn't hurt to link with amiga.lib in any case.

Either link...
Forum: Coders. Asm / Hardware 07 June 2020, 21:01
Replies: 6
Views: 598
Posted By phx
Hmm. You saw what I did in Trap Runner, because I...

Hmm. You saw what I did in Trap Runner, because I like to have an overview which symbols I imported from which modules. This is also the reason I implemented that warning - to make it easy to find...
Forum: Nostalgia & memories 06 June 2020, 20:28
Replies: 176
Views: 17,133
Posted By phx
It was unavoidable. Being on the typical...

It was unavoidable. Being on the typical Commodore upgrade path (VIC-20 in 1983 and C-64 in 1984) I was fascinated by the first reports about the Amiga 1000 in magazines. Then I saw it for the first...
Forum: Coders. Asm / Hardware 06 June 2020, 16:23
Replies: 47
Views: 2,204
Posted By phx
Indeed, it doesn't feel right, especially if you...

Indeed, it doesn't feel right, especially if you quickly alternate between left and right.

This is certainly not trivial and there is some physics involved. For example your car should not turn at...
Forum: Coders. Asm / Hardware 06 June 2020, 14:10
Replies: 8
Views: 538
Posted By phx
Library Vector Offset. Every Amiga library...

Library Vector Offset. Every Amiga library (shared library: xyz.library) has a jump table for all of its exported functions. The LVO defines the offset relative to the library's base address (which...
Forum: Coders. Asm / Hardware 05 June 2020, 16:29
Replies: 6
Views: 473
Posted By phx
That should really be in an assembler FAQ...

That should really be in an assembler FAQ somewhere, and it isn't vasm-specific at all. :)

The official NDK doesn't define the FUNCDEF macro. You have to do that yourself. Look into...
Forum: Coders. Asm / Hardware 05 June 2020, 10:42
Replies: 6
Views: 473
Posted By phx
UNUSED is just a flag that tells you that this...

UNUSED is just a flag that tells you that this symbol was not used in any other expression.


Clenched and meynaf are right. The default mode of vasm (mostly Devpac-compatible) treats any...
Forum: Coders. C/C++ 30 May 2020, 15:26
Replies: 7
Views: 606
Posted By phx
Sorry. Forget what I said! It only matters when...

Sorry. Forget what I said! It only matters when you call vlink directly.
When using the vc frontend it makes sure that -l libraries appear after the object files for the vlink-call. But it's a good...
Forum: Coders. C/C++ 29 May 2020, 18:35
Replies: 7
Views: 606
Posted By phx
Note, that the position of the library on the...

Note, that the position of the library on the command line matters. For example to override/replace functions from it. It is recommended to specify libraries last.
Forum: Coders. General 22 May 2020, 12:33
Replies: 17
Views: 1,543
Posted By phx
It might also be that the crash instruction is...

It might also be that the crash instruction is random, because a bug trashes memory or the stack. At this point I would follow daxb's early advice to test CubicIDE with Enforcer/MuForce. It will...
Forum: Coders. Asm / Hardware 21 May 2020, 13:38
Replies: 11
Views: 644
Posted By phx
Yes, maybe. As long as a path doesn't generate...

Yes, maybe. As long as a path doesn't generate strange errors on one OS.
Forum: Coders. Asm / Hardware 21 May 2020, 13:35
Replies: 11
Views: 644
Posted By phx
Ok, depending on whether vasm is compiled with...

Ok, depending on whether vasm is compiled with -DUNIX, -DAMIGA, -DATARI, -DMSDOS, etc. it defines one of these internal symbols: __UNIXFS __AMIGAFS __MSDOSFS
Otherwise no such symbol is defined. The...
Forum: Coders. Asm / Hardware 21 May 2020, 01:26
Replies: 10
Views: 744
Posted By phx
No. The destination modulo will be smaller of...

No. The destination modulo will be smaller of course. When your new BOB is two bytes wider, then the modulo, which is added to advance the D-pointer to the next bitmap-line, must be two bytes...
Forum: Coders. Asm / Hardware 20 May 2020, 17:27
Replies: 13
Views: 871
Posted By phx
Now there is. I added the new option -nomsg=<n>,...

Now there is. I added the new option -nomsg=<n>, which can suppress specific informational messages. Try tomorrow's source snapshot!
Forum: Coders. Asm / Hardware 20 May 2020, 17:02
Replies: 11
Views: 644
Posted By phx
No, not yet. There is also no code to determine...

No, not yet. There is also no code to determine the host OS in vasm. The only OS-dependant code (for automatic path-conversions) is selected by compiling vasm with an AMIGA, _WIN32, MSDOS or ATARI...
Forum: Coders. Asm / Hardware 19 May 2020, 18:07
Replies: 13
Views: 871
Posted By phx
When assembling in vasm default mode - none. You...

When assembling in vasm default mode - none. You can force an 8-bit branch with it, but usually it is better to leave the size-extension away an let the assembler find the best option. That's what an...
Forum: Coders. Asm / Hardware 19 May 2020, 11:23
Replies: 13
Views: 871
Posted By phx
Hard to believe. That would be a serious bug, but...

Hard to believe. That would be a serious bug, but I cannot reproduce it:

frank@miriel cat bsr1.s
code
bsr.s x
rts
frank@miriel cat bsr2.s
code
ds.b ...
Forum: Coders. Asm / Hardware 19 May 2020, 11:16
Replies: 13
Views: 871
Posted By phx
As far as I understand your own executable...

As far as I understand your own executable crashs, not vlink? Then chances are high that Antiriad is right.

If this is reproducible and the sprite data should be static, then it seems like the...
Forum: Coders. System 18 May 2020, 10:59
Replies: 3
Views: 493
Posted By phx
As bwldrbst already mentioned, the first question...

As bwldrbst already mentioned, the first question is if you just want the text on "the screen" (which could also be a Window on the screenm, or even a bitmap without using the OS) or do you need the...
Forum: Coders. C/C++ 16 May 2020, 22:14
Replies: 21
Views: 1,276
Posted By phx
Ok. So you need a real executable. But can you...

Ok. So you need a real executable. But can you pass parameters to it or start it multiple times? Otherwise its usefulness would be quite limited. ;)
Forum: Coders. C/C++ 16 May 2020, 12:14
Replies: 21
Views: 1,276
Posted By phx
Ok... so PLIST doesn't load a binary but the...

Ok... so PLIST doesn't load a binary but the first hunk from an executable file or object file? That's an important difference, because then I assume it will also process the relocations for you. ;)...
Forum: Coders. General 16 May 2020, 11:34
Replies: 5
Views: 773
Posted By phx
Ok. Fair enough. :) At least not before V36....

Ok. Fair enough. :)

At least not before V36. For Kickstart 1.x you could use some simple format string processing with RawDoFmt().

Yes. My best guess would also be that some memory was trashed...
Forum: Coders. Asm / Hardware 12 May 2020, 01:33
Replies: 6
Views: 635
Posted By phx
Any linker should automatically merge sections...

Any linker should automatically merge sections with the same type and name. Otherwise I would regard that as a bug.

Although for AmigaDOS hunks there is an exception: sections without a name or...
Forum: New to Emulation or Amiga scene 10 May 2020, 12:19
Replies: 95
Views: 21,675
Posted By phx
Nice! I wouldn't have expected that you can strip...

Nice! I wouldn't have expected that you can strip down an Amiga kernel that much nowadays. I remember NetBSD 1.x times, where the kernel fit on a single floppy disk and 16MB where even usable for X11.
Forum: Coders. General 09 May 2020, 21:28
Replies: 5
Views: 773
Posted By phx
What does "refuses to read" or "chokes" mean in...

What does "refuses to read" or "chokes" mean in detail? You can open the file and get a valid file handle, but then fread() or Read() is returning zero-bytes read and/or an error code (which)?

...
Forum: Coders. Asm / Hardware 06 May 2020, 11:24
Replies: 8
Views: 724
Posted By phx
Auscoder is right, you can set the default...

Auscoder is right, you can set the default include directory over the menu in Settings -> Assembler -> Control, or Right-Amiga-1. Or use the INCDIR keyword wenn calling genam via the command line.
...
Forum: Amiga scene 04 May 2020, 12:36
Replies: 677
Views: 72,064
Posted By phx
Indeed, that would be useless. We need a source...

Indeed, that would be useless. We need a source level debugger which supports SAS/C's LINE-debug hunks, which was widely used by many native Amiga compilers.

The best existing native debugger,...
Showing results 1 to 40 of 1673

 
Forum Jump

All times are GMT +2. The time now is 11:48.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.16188 seconds with 10 queries