English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 1454
Search took 0.12 seconds.
Search: Posts Made By: phx
Forum: Coders. Releases 18 October 2019, 21:57
Replies: 91
Views: 23,494
Posted By phx
Yes. And I should really add that to the Readme,...

Yes. And I should really add that to the Readme, for the next release. This is asked frequently. :)

Sound effect samples have to be in the same format as the music samples, which means: make sure...
Forum: Coders. General 18 October 2019, 10:48
Replies: 74
Views: 2,276
Posted By phx
Looks as if you need more than 1ms on average for...

Looks as if you need more than 1ms on average for drawing a line (in 4 bitplanes?). That's less than 20 lines per frame, which is pretty low.

Would it help if you draw a polygon once, then copy it...
Forum: Coders. Releases 16 October 2019, 16:15
Replies: 91
Views: 23,494
Posted By phx
You have to find the start address of the first...

You have to find the start address of the first sample in your MOD file. Split the file at that offset.

For my games I wrote the following portable C source:

/*
* Splits a standard...
Forum: Coders. General 14 October 2019, 17:02
Replies: 74
Views: 2,276
Posted By phx
Yes, of course you can write a game in 3 weeks....

Yes, of course you can write a game in 3 weeks. It depends on the game - I wrote a new one every day on the VIC-20 in 1983. ;)

A working flight-simulator, even a simplistic one, but especially...
Forum: Coders. Asm / Hardware 13 October 2019, 13:59
Replies: 7
Views: 344
Posted By phx
Describes it very well! :great It makes clear...

Describes it very well! :great
It makes clear why you always need one additional word for the width, which sometimes confuses new developers.
Forum: News 07 October 2019, 22:47
Replies: 4
Views: 834
Posted By phx
I told you there have been bug fixes... ;) Nice.

I told you there have been bug fixes... ;)
Nice.
Forum: News 05 October 2019, 13:06
Replies: 4
Views: 834
Posted By phx
vbcc 0.9g and vasm 1.8g released

We just released version 0.9g of our portable and retargetable ISO-C compiler:
http://sun.hasenbraten.de/vbcc/

Besides some enhancements and numerous bug fixes the focus was on improving the...
Forum: Coders. General 03 October 2019, 11:57
Replies: 12
Views: 789
Posted By phx
Looks good so far, although I don't know why you...

Looks good so far, although I don't know why you disable interrupts twice.

Additionally you may want to reset FMODE and BPLCONx to standard values, in case you have to disable AGA/ECS.
Forum: Coders. C/C++ 01 October 2019, 16:55
Replies: 20
Views: 824
Posted By phx
Not for a whole .c file, but you overwrite the...

Not for a whole .c file, but you overwrite the section for each function by using the __section(name,attributes) attribute. Example:

__section(".mytext","acrx") int myfunc(int a,int b)
"acrx"...
Forum: Coders. General 26 September 2019, 18:43
Replies: 17
Views: 484
Posted By phx
Hmm. Is this really a problem in real life? When...

Hmm. Is this really a problem in real life? When the system or a low-level trackloader-game is booting, there is often no keyboard interrupt handler assigned, still I never experienced any problem if...
Forum: Coders. General 26 September 2019, 18:31
Replies: 17
Views: 484
Posted By phx
Yes. Read the CIA's ICR register. TA will be set...

Yes. Read the CIA's ICR register. TA will be set for a Timer-A interrupt. SP will be set for a Serial Port (keyboard) interrupt. Note, that reading ICR resets all bits, so you have remember them.

...
Forum: Coders. General 25 September 2019, 19:45
Replies: 7
Views: 449
Posted By phx
The last one is correct. I wouldn't exclude the...

The last one is correct.
I wouldn't exclude the possibility that multiple interrupt sources may trigger at the same time.
Forum: Coders. Asm / Hardware 24 September 2019, 17:36
Replies: 5
Views: 344
Posted By phx
The IF directive is supported, as well as ENDIF...

The IF directive is supported, as well as ENDIF and ENDC. The problem might be that you are assembling in strict Devpac-compatibility mode (-devpac option)? This excludes IF.
Forum: Coders. General 24 September 2019, 16:41
Replies: 23
Views: 846
Posted By phx
Not sure. The latest SAS/C versions implemented...

Not sure. The latest SAS/C versions implemented an early C++ standard. And there was also Maxon C++?

I don't remember any compiler which didn't work from HD.

Too old. There was no C++ at that...
Forum: Coders. C/C++ 23 September 2019, 16:02
Replies: 19
Views: 738
Posted By phx
You are asking for trouble when using C++ in such...

You are asking for trouble when using C++ in such a low memory configuration. What's wrong with C?
Forum: Coders. Tutorials 22 September 2019, 19:26
Replies: 40
Views: 1,306
Posted By phx
Not sure if this will be simple for a beginner,...

Not sure if this will be simple for a beginner, without knowledge of the hunk format structure. :)

To simplify it: if you have a single-section executable the header will be 32 bytes, which you...
Forum: Coders. General 22 September 2019, 19:06
Replies: 5
Views: 308
Posted By phx
You're lucky. "opt c-" disables case-sensitivity....

You're lucky. "opt c-" disables case-sensitivity. So this feature was not used in the source.

"opt o+" enables most optimizations, so the code generated by AsmOne is probably worse.
Forum: Member Introductions 20 September 2019, 18:51
Replies: 12
Views: 730
Posted By phx
Wow. The world is small. :) Yes... Herford has...

Wow. The world is small. :)
Yes... Herford has a city-friendship with Fredericia, which is not too far from Vejle. So there were some visits organized in school.
Forum: Coders. C/C++ 18 September 2019, 21:33
Replies: 20
Views: 824
Posted By phx
Ok, looked at your example (and replied the...

Ok, looked at your example (and replied the mail). There is no bug! Everything works as expected.

vbcc was told to generate 68040 code, and for this CPU it makes no sense to optimize absolute...
Forum: Member Introductions 18 September 2019, 16:00
Replies: 12
Views: 730
Posted By phx
Hej! Velkommen til EAB og hilsener til Vejle! ...

Hej! Velkommen til EAB og hilsener til Vejle!

I'm passing over the Vejle Fjord Bridge several times a year on my way to Cold Hawaii! :)
Forum: Coders. Asm / Hardware 18 September 2019, 11:35
Replies: 12
Views: 927
Posted By phx
MonAm is a good choice, when debugging under...

MonAm is a good choice, when debugging under AmigaOS. IIRC it also supports symbols. For OS2.0+ I prefer BDebug from the (now free) Barfly assembler package.

To debug software which takes over the...
Forum: Coders. C/C++ 18 September 2019, 11:16
Replies: 20
Views: 824
Posted By phx
I cannot reproduce that. Please check your...

I cannot reproduce that. Please check your assembler, or assembler options in the config file.

Example with vasm 1.8f:

frank@altair cat tst.asm
machine 68040
near code
...
Forum: Coders. C/C++ 17 September 2019, 20:27
Replies: 20
Views: 824
Posted By phx
Please also give me all compiler-, linker-options...

Please also give me all compiler-, linker-options you are using.

You make that extra-hard by going the C-only route. :)
As long as you don't use cross-module optimizations with -O4 you should be...
Forum: Coders. C/C++ 17 September 2019, 15:06
Replies: 20
Views: 824
Posted By phx
Hmmm... yes. The reason is in the linker...

Hmmm... yes. The reason is in the linker libraries, not in your code. Even if you compile with -sc and -sd and link with -lvcs, the vcs.lib itself was only compiled with -sd, but not with -sc. So all...
Forum: Coders. Asm / Hardware 17 September 2019, 14:20
Replies: 12
Views: 927
Posted By phx
I won't give you any recommendations, but I am...

I won't give you any recommendations, but I am quite sure that it works. You only have to select the correct object file format for this gcc-port's linker.
Forum: Coders. C/C++ 17 September 2019, 13:55
Replies: 20
Views: 824
Posted By phx
The "near code" directive does the same as vasm's...

The "near code" directive does the same as vasm's -sc option: it converts all absolute JMP/JSR with external labels into PC-relative JMP/JSR.
Absolute references to known labels within the source...
Forum: Coders. Blitz Basic 15 September 2019, 01:12
Replies: 55
Views: 4,916
Posted By phx
Sorry, mised that. No. At least not in my...

Sorry, mised that.


No. At least not in my games, and also not in other games using ptplayer.

Half a second is a lot.

When you call mt_playfx for a new sound effect, it will take until the...
Forum: Coders. Blitz Basic 04 September 2019, 21:15
Replies: 55
Views: 4,916
Posted By phx
Done. New function for ptplayer V5.4: ...

Done. New function for ptplayer V5.4:

_mt_samplevol(d0=SampleNumber.w, d1=Volume.b)
Redefine a sample's volume. May also be done while the song is playing.
Warning: Does not check arguments...
Forum: Coders. Blitz Basic 03 September 2019, 19:48
Replies: 55
Views: 4,916
Posted By phx
You mean something like a master volume per...

You mean something like a master volume per channel? That would be easy to do, as currently the same master volume is just applied to each of the four channels.

Or do you want to control the...
Forum: Coders. General 03 September 2019, 16:36
Replies: 7
Views: 353
Posted By phx
Without looking at your example this sounds like...

Without looking at your example this sounds like the first two bytes of the sample are not cleared! Remember that usual Protracker players play non-looped samples by setting their length to 1 word,...
Forum: News 01 September 2019, 13:20
Replies: 158
Views: 11,227
Posted By phx
Because NTSC has less lines than PAL...? ;) ...

Because NTSC has less lines than PAL...? ;)

And less action, because you have less time to render your frame.
Forum: News 30 August 2019, 10:39
Replies: 158
Views: 11,227
Posted By phx
And that's what is making it challenging and fun...

And that's what is making it challenging and fun to code. Even a hobby coder can get near the limits of the machine if she or he tries hard enough. Don't forget that most Amiga games are developed...
Forum: News 29 August 2019, 22:43
Replies: 114
Views: 6,672
Posted By phx
Now since watching the live stream I have to say...

Now since watching the live stream I have to say that this is going to be an incredible new game. Looking very professional. I'm not a fan of brawler games myself, but this will definitely be a lot...
Forum: Coders. Asm / Hardware 29 August 2019, 13:49
Replies: 14
Views: 715
Posted By phx
That's a matter of taste. If you think that white...

That's a matter of taste. If you think that white spaces in your operands make them more readable, then you should do that. You may even use -spaces with -devpac.

I regard Devpac as a kind of...
Forum: Coders. Asm / Hardware 29 August 2019, 12:35
Replies: 14
Views: 715
Posted By phx
Yes. -phxass includes -spaces. So you are not...

Yes. -phxass includes -spaces. So you are not looking for a Devpac-compatible assembler after all, but PhxAss compatible.

:laughing
Forum: Coders. Asm / Hardware 29 August 2019, 10:53
Replies: 14
Views: 715
Posted By phx
As far as I remember white spaces in operands...

As far as I remember white spaces in operands aren't allowed in Devpac either. You would need the -spaces option in vasm to allow that.
Forum: Coders. Asm / Hardware 28 August 2019, 15:14
Replies: 10
Views: 902
Posted By phx
Looking good. Hint: You can save one "swap d1"...

Looking good.
Hint: You can save one "swap d1" when you write to 6(a1) first. ;)
Forum: Coders. Asm / Hardware 28 August 2019, 14:13
Replies: 14
Views: 715
Posted By phx
Sorry when I confused you. I just tried to show...

Sorry when I confused you. I just tried to show you an option to use real Chip-memory sections. Otherwise you don't need anything else than the -Felf switch on vasm.

Even if that works, you would...
Forum: Coders. Asm / Hardware 28 August 2019, 12:52
Replies: 14
Views: 715
Posted By phx
Right. The Chip-attribute can only survive in...

Right. The Chip-attribute can only survive in hunk-format.

You could work around the problem by using a linker which supports both, hunk- and ELF-objects. Write your assembler sources as...
Forum: Coders. Asm / Hardware 27 August 2019, 20:54
Replies: 14
Views: 715
Posted By phx
You are correct. vasm can emit most common object...

You are correct. vasm can emit most common object file formats. I haven't checked what this gcc-port needs, but if it is ELF-68k then a simple -Felf option instead of -Fhunk should suffice.

EDIT:...
Showing results 1 to 40 of 1454

 
Forum Jump

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


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