English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 1482
Search took 0.12 seconds.
Search: Posts Made By: phx
Forum: Coders. General 12 November 2019, 18:50
Replies: 100
Views: 1,980
Posted By phx
When you know the trap is in...

When you know the trap is in Keyboard_Interrupt_ProcessRawKeyCodeBuffer(), then the frist thing I would do is to compile this source with -S and look at the assembler output the compiler generates....
Forum: Coders. Asm / Hardware 09 November 2019, 20:00
Replies: 18
Views: 683
Posted By phx
Thanks. Will probably find it, now that I know it...

Thanks. Will probably find it, now that I know it exists. :)
Forum: Coders. Asm / Hardware 09 November 2019, 19:59
Replies: 18
Views: 683
Posted By phx
Yes, I think so. :) Today I finally implemented...

Yes, I think so. :)
Today I finally implemented everything and it is working nicely.

I am generating a table for 64 values of dx and dy. Which means the table has 64*64 (4096) normalized...
Forum: Coders. Asm / Hardware 09 November 2019, 19:22
Replies: 18
Views: 683
Posted By phx
That's great! Looks like a performant...

That's great! Looks like a performant implementation! Can you please check the code? I guess the '?' is just any iteration variable. Semicolons are missing and there is one closing-brace too much.
...
Forum: Coders. C/C++ 07 November 2019, 23:12
Replies: 27
Views: 2,834
Posted By phx
I'm not too familar with the ucpp source, as this...

I'm not too familar with the ucpp source, as this is probably the only part of the vbcc development environment which was not written by me or Volker.

But in this case I guess the replacement is...
Forum: Coders. Asm / Hardware 06 November 2019, 23:55
Replies: 29
Views: 1,059
Posted By phx
Thanks. I'm aware of that. I'm using these...

Thanks. I'm aware of that. I'm using these routines only in games, which take over the system and do nothing else than trackloading from 3.5" disk drives.
Forum: Coders. Asm / Hardware 06 November 2019, 18:02
Replies: 29
Views: 1,059
Posted By phx
Im using the following code in my games (started...

Im using the following code in my games (started with trackloader from the boot block), while the OS is still alive:

1. Determine CPU and set up caches.
...
Forum: Coders. Asm / Hardware 06 November 2019, 15:08
Replies: 18
Views: 683
Posted By phx
Yes! These two replies together might be the...

Yes! These two replies together might be the solution! I don't need that much precision, so a small table will work. Thanks.
Forum: Coders. Asm / Hardware 06 November 2019, 14:59
Replies: 18
Views: 683
Posted By phx
Hmm, ok. Then I would need two fixed point ...

Hmm, ok. Then I would need two fixed point multiplications with it (dx*invsqr and dy*invsqr) to get my pixels/frame movement. Still expensive, but much better.


Maybe 320 * 256, for each dx and...
Forum: Coders. Asm / Hardware 06 November 2019, 13:05
Replies: 18
Views: 683
Posted By phx
Aimed missiles and fixed-point divisions

Most shooters might have solved this problem. An enemy object decides to shoot at the player, from any x1/y1 to any x2/y2 coordinate. I have to admit that I am struggling to find a performant...
Forum: Coders. General 01 November 2019, 15:00
Replies: 74
Views: 5,448
Posted By phx
Yes, I used it for Trap Runner and Solid Gold....

Yes, I used it for Trap Runner and Solid Gold. The portable packer is extremely slow, though. Takes hours on real 68k hardware.
Forum: Coders. Asm / Hardware 01 November 2019, 12:52
Replies: 8
Views: 709
Posted By phx
I had decades of experience in 68k assembler...

I had decades of experience in 68k assembler coding and wrote all kinds of hardware scrolling routines since the 80s, but it lasted until 2012, when I read Georg Steger‘s ScrollingTrick (Aminet),...
Forum: Coders. General 30 October 2019, 12:09
Replies: 274
Views: 9,547
Posted By phx
Maybe letting the compiler optimise for 68040 may...

Maybe letting the compiler optimise for 68040 may change that. IIRC, the 040 is a strange exception, as 32-bit absolute addressing is faster than base- or PC-relative. Don‘t know if UAE emulates it,...
Forum: Coders. General 28 October 2019, 21:34
Replies: 17
Views: 579
Posted By phx
clock() is difficult to implement under AmigaOS....

clock() is difficult to implement under AmigaOS. IIRC, it should only measure the time spent in the current process. So depending on the clib used this might be more or less correct. ;)
Forum: Coders. General 28 October 2019, 21:24
Replies: 274
Views: 9,547
Posted By phx
Define "normal" linkers! :) A typical Amiga...

Define "normal" linkers! :)

A typical Amiga linker (alink, blink, slink) might complain, because the Amiga hunk format doesn‘t support Common symbols (2.0 implements them partly, but no linker...
Forum: Coders. General 28 October 2019, 19:01
Replies: 274
Views: 9,547
Posted By phx
Oh, yes. That's not a good option to use when...

Oh, yes. That's not a good option to use when trying to link several object modules. ;)

BTW, backBuffer is a "Common" symbol, which is always global (except, see above). The linker will allocate...
Forum: Coders. General 28 October 2019, 17:42
Replies: 274
Views: 9,547
Posted By phx
When it is ELF then it is probably "xref...

When it is ELF then it is probably "xref backBuffer". But I would check the symbols which game_display.o exports, by "objdump -t game_display.o". The character following the symbol's value should be...
Forum: Coders. General 28 October 2019, 16:42
Replies: 274
Views: 9,547
Posted By phx
LOL Sorry. Must have fallen asleep while trying...

LOL
Sorry. Must have fallen asleep while trying to reply to deimos around 11:00 CET and delayed my posting by three hours, without noticing any other replies. :p
Forum: Coders. C/C++ 28 October 2019, 15:47
Replies: 4
Views: 272
Posted By phx
No, you cannot restrict the code generator to use...

No, you cannot restrict the code generator to use certain registers in a function. But to minimize assembler usage you could either use the __saveall attribute, which also saves/restores all (used)...
Forum: Coders. General 28 October 2019, 15:34
Replies: 274
Views: 9,547
Posted By phx
Last time I tried watchpoints they worked. At...

Last time I tried watchpoints they worked. At least when being accessed by the CPU. I'm not sure if such a watch point works with DMA, like blitter-writes. Certainly Tony knows.
Forum: Coders. General 28 October 2019, 02:39
Replies: 274
Views: 9,547
Posted By phx
The UAE debugger doesn‘t know about any symbols...

The UAE debugger doesn‘t know about any symbols your program might have defined, so setting a breakpoint to some address is no big help. The trick is to use the fi (find instruction) command to break...
Forum: Coders. Asm / Hardware 27 October 2019, 18:39
Replies: 34
Views: 1,786
Posted By phx
There are only constraints for 4-colour sprites....

There are only constraints for 4-colour sprites. All attached 15-colour sprites use the same COLOR17-31 registers.
Forum: EAB's competition 27 October 2019, 14:11
Replies: 50
Views: 1,576
Posted By phx
That shouldn't happen. My implementation should...

That shouldn't happen. My implementation should make them turn around at the left and right edge of the map, as if it were an obstacle.

Right. There is an activation- and deactivation-distance for...
Forum: project.Amiga Game Factory 27 October 2019, 02:34
Replies: 27
Views: 3,157
Posted By phx
You are probably right. Very good example! Now I...

You are probably right. Very good example! Now I even remember that we already discussed that some time ago, but I must have been a lazy cow and didn‘t verify that properly. ;)
Forum: project.Amiga Game Factory 26 October 2019, 01:34
Replies: 27
Views: 3,157
Posted By phx
Nice! On all four borders? When I decided to do...

Nice! On all four borders? When I decided to do clipping I realized that clipping at the top and bottom is sufficient, because you need three extra columns for horizontal scrolling anyway. So,...
Forum: Coders. Asm / Hardware 23 October 2019, 15:07
Replies: 9
Views: 429
Posted By phx
Ah, ok. Now I understand! So do the CPU-intensive...

Ah, ok. Now I understand! So do the CPU-intensive game logic first in parallel to bitplane DMA, then do the Blitter-work which may even partly happen after the display window. Interesting.
Forum: Coders. General 23 October 2019, 14:57
Replies: 274
Views: 9,547
Posted By phx
You overwrote your copper list with a bad blitter...

You overwrote your copper list with a bad blitter operation? Does the copper list reside near the bitplanes in memory? Are you sure clipping works well?

When debugging with UAE:
1. Use the o...
Forum: Coders. Asm / Hardware 23 October 2019, 14:44
Replies: 9
Views: 429
Posted By phx
I don't quite understand that. When you...

I don't quite understand that. When you synchronise your program with a copper interrupt at the first line with bitplane-fetches, you will be starting with the least amount of free DMA slots. Why is...
Forum: Coders. Releases 18 October 2019, 22:57
Replies: 91
Views: 24,471
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, 11:48
Replies: 274
Views: 9,547
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, 17:15
Replies: 91
Views: 24,471
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, 18:02
Replies: 274
Views: 9,547
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, 14:59
Replies: 7
Views: 526
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, 23:47
Replies: 4
Views: 953
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, 14:06
Replies: 4
Views: 953
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, 12:57
Replies: 12
Views: 961
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, 17:55
Replies: 20
Views: 1,032
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, 19:43
Replies: 17
Views: 605
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, 19:31
Replies: 17
Views: 605
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, 20:45
Replies: 7
Views: 565
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.
Showing results 1 to 40 of 1482

 
Forum Jump

All times are GMT +2. The time now is 23:01.


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