English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 1664
Search took 0.14 seconds.
Search: Posts Made By: phx
Forum: Coders. C/C++ 23 June 2020, 22:07
Replies: 14
Views: 482
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: 482
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: 482
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: 14,916
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: 436
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: 554
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: 16,896
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,075
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: 497
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: 429
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: 429
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: 568
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: 568
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,497
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: 632
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: 632
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: 730
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: 861
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: 632
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: 861
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: 861
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: 861
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: 455
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,211
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,211
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: 736
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: 627
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,434
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: 736
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: 717
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: 657
Views: 68,610
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,...
Forum: Coders. Asm / Hardware 03 May 2020, 22:54
Replies: 34
Views: 2,052
Posted By phx
Didn't tst execute a read-modify-write cycle on...

Didn't tst execute a read-modify-write cycle on 68000? This could be another reason that Motorola didn't allow tst d(PC) before 68020. It would write to the text segment.

EDIT: Maybe I confused...
Forum: Coders. Asm / Hardware 03 May 2020, 01:29
Replies: 34
Views: 2,052
Posted By phx
The reference manual is using the new syntax:...

The reference manual is using the new syntax: (d,PC), which was introduced together with the 68020. The old 68000 syntax is d(PC), but both mean exactly the same.

Many assemblers support both...
Forum: project.Amiga Game Factory 03 May 2020, 01:14
Replies: 136
Views: 10,425
Posted By phx
Thanks! A pretty interesting development video....

Thanks! A pretty interesting development video. You have found some very good solutions. Also a game without scrolling can be an exciting challenge. ;)
Forum: Coders. C/C++ 28 April 2020, 23:19
Replies: 8
Views: 1,046
Posted By phx
Yes, this might work. But when I have to touch...

Yes, this might work. But when I have to touch vprof.c anyway I would rather go the safe route and add an option to let the user specify the format.
Forum: Coders. Asm / Hardware 28 April 2020, 23:17
Replies: 6
Views: 994
Posted By phx
This is intended. 32-bit values may also be...

This is intended. 32-bit values may also be specified as IEEE Single Precision floating point. So you can either write its hex-code or use a decimal point and let vasm convert.

It is even allowed...
Forum: Coders. C/C++ 26 April 2020, 23:51
Replies: 8
Views: 1,046
Posted By phx
Oh. I see the problem! The profiling output was...

Oh. I see the problem! The profiling output was generated by a 32-bit big-endian machine while you are probably running vprof natively on a 64-bit little-endian machine? That doesn't work.

It's my...
Forum: Coders. Tutorials 26 April 2020, 01:16
Replies: 43
Views: 3,392
Posted By phx
It's portable C99 using only standard clib...

It's portable C99 using only standard clib functions, so it will run on any system with a working C compiler.
Forum: Coders. C/C++ 26 April 2020, 01:11
Replies: 8
Views: 1,046
Posted By phx
It works similar to gcc profiling. When compiled...

It works similar to gcc profiling. When compiled with the -prof option the executable will write a file with profiling data on exit, called mon.out. These profiling data can be analyzed with the...
Forum: Coders. Blitz Basic 25 April 2020, 00:55
Replies: 17
Views: 1,286
Posted By phx
You didn't mention how you create those strings....

You didn't mention how you create those strings. But assuming you are generating the string from a number then Basic has already done similar division and multiplication operations.


No. You can...
Showing results 1 to 40 of 1664

 
Forum Jump

All times are GMT +2. The time now is 21:43.


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