English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 1116
Search took 0.09 seconds.
Search: Posts Made By: phx
Forum: Coders. General Today, 12:51
Replies: 32
Views: 975
Posted By phx
I have to say that I didn't make any further...

I have to say that I didn't make any further experiments with Huffman encoding for now. I have still about 40K left on the disk and will probably only need some more samples for the menu. Also...
Forum: Coders. General 09 July 2018, 13:26
Replies: 32
Views: 975
Posted By phx
Coming back to Mr.Huffman on Deltas, followed by...

Coming back to Mr.Huffman on Deltas, followed by an LZ-compression. That seems to be the best approach.


The Huffman algorithm is straight-forward, but as I understand you have to save a table...
Forum: Coders. Asm / Hardware 09 July 2018, 13:04
Replies: 5
Views: 291
Posted By phx
When the program still assembles without error...

When the program still assembles without error using -kick1hunks, then it cannot be an OS2+ specific relocation which was in use. So I am quite sure that the first executable just contained a...
Forum: Coders. General 07 July 2018, 23:47
Replies: 32
Views: 975
Posted By phx
Excellent idea! I will certainly find a...

Excellent idea!

I will certainly find a portable Huffman encoder in C somewhere. The 68k decoder is another topic. But the encoder is sufficient for some tests. :)
Forum: Coders. General 07 July 2018, 14:50
Replies: 32
Views: 975
Posted By phx
Ok, I have some results with real data. As I...

Ok, I have some results with real data. As I feared, the gain by such a delta-transformation is not impressive. Three test cases:

1. All instrument samples from a Protracker MOD (53476 bytes)
...
Forum: Coders. General 07 July 2018, 12:46
Replies: 32
Views: 975
Posted By phx
No OS available. Crunching performance does...

No OS available.

Crunching performance does not matter. It is done during the build process and must be portable.

Exactly. Samples are only loaded once into memory. Then used for effects in the...
Forum: Coders. General 07 July 2018, 12:14
Replies: 32
Views: 975
Posted By phx
Sorry, I should have been more precise. :) ...

Sorry, I should have been more precise. :)

Indeed, I need a lossless compression, and at least the decompression shouldn't be too complex, because I have to implement it in assembler as part of...
Forum: Coders. General 07 July 2018, 10:30
Replies: 32
Views: 975
Posted By phx
Compressing Samples

Does a good, portable C source for compressing Amiga 8-bit audio samples exist? Probably some delta-compression algorithm has the best effect?
Forum: Amiga websites reviews 26 June 2018, 12:26
Replies: 18
Views: 1,100
Posted By phx
I guess that LHA is just *the* standard archiver...

I guess that LHA is just *the* standard archiver on the Amiga. You can expect that every Amiga user has it installed. Just like ZIP is the standard in the Windows world, although there are much...
Forum: Coders. C/C++ 21 June 2018, 17:10
Replies: 7
Views: 341
Posted By phx
You need the FD file and the clib prototypes...

You need the FD file and the clib prototypes header. Assuming the library is xyz.library, generate the (portable) proto/xyz.h like this:

fd2pragma special 38 to include/proto xyz.fd
Then generate...
Forum: Coders. Asm / Hardware 20 June 2018, 13:02
Replies: 9
Views: 422
Posted By phx
Just look at the last line. The default output...

Just look at the last line. The default output format is "test", not AmigaOS hunk-format executable.
Forum: Coders. General 18 June 2018, 12:22
Replies: 4
Views: 468
Posted By phx
Explanation: The standard clib (vc.lib) does not...

Explanation: The standard clib (vc.lib) does not include floating point support to keep programs small. When linking with the mlib (mieee.lib for soft-float) several functions (like printf, scanf,...
Forum: Coders. General 12 June 2018, 23:15
Replies: 18
Views: 927
Posted By phx
Oh, yes. I was already wondering why the comment...

Oh, yes. I was already wondering why the comment didn't really match the function name.

Ok. I see. The _done_flag makes every second interrupt skip the make_screen routine, which continues to run...
Forum: Coders. General 12 June 2018, 18:29
Replies: 18
Views: 927
Posted By phx
Hmm. Really? As far as I understand that wouldn't...

Hmm. Really? As far as I understand that wouldn't give you the possibility to finish your update_all, when it takes more than 20ms, because the current VBL is interrupted by the next VBL, which...
Forum: Coders. Asm / Hardware 12 June 2018, 18:19
Replies: 11
Views: 702
Posted By phx
You can only try to limit the memory allocations...

You can only try to limit the memory allocations of the OS. For example by starting without startup-sequence in a 2-color shell.
Forum: Coders. General 11 June 2018, 17:19
Replies: 18
Views: 927
Posted By phx
Perhaps Steril707's game engine is itself running...

Perhaps Steril707's game engine is itself running in VBL? He didn't say that explicitely. This would make things a little bit more complicated.
Forum: Coders. Asm / Hardware 05 June 2018, 01:46
Replies: 6
Views: 485
Posted By phx
No, unfortunately not. You could try to send an...

No, unfortunately not. You could try to send an ACTION_FLUSH packet to the filesystem, but there is no DOS-call for it.

Or maybe you can enforce the buffer flush by opening and reading from...
Forum: Coders. General 31 May 2018, 19:06
Replies: 10
Views: 671
Posted By phx
Wow! Those Python plugins are really a powerful...

Wow! Those Python plugins are really a powerful extension to Tiled!

I did some Python code before (mainly for web pages), but I always prefer C when I have the choice. Indeed my converter does the...
Forum: Coders. General 30 May 2018, 20:51
Replies: 10
Views: 671
Posted By phx
Usually an Amiga game doesn't want to parse the...

Usually an Amiga game doesn't want to parse the XML files, which TilEd generates, for several reasons (too complex, files are unnecessarily large).

So I have written a small, portable C program...
Forum: Coders. General 30 May 2018, 13:36
Replies: 10
Views: 671
Posted By phx
I can also recommend TilEd. It does nearly...

I can also recommend TilEd. It does nearly everything you will ever need and allows custom properties for tiles and maps. We are using it for our current game development and even define all sprite...
Forum: Coders. Contest 19 May 2018, 14:00
Replies: 383
Views: 68,438
Posted By phx
Exactly. Don't start an Amiga game, if you expect...

Exactly. Don't start an Amiga game, if you expect money or acknowledgement! Do it for yourself. Have fun. And maybe a few others have it too.



Really? :shocked

IMHO, when a game targets...
Forum: Coders. Contest 18 May 2018, 20:06
Replies: 383
Views: 68,438
Posted By phx
Absolutely. A stock A500 with 68000/7MHz should...

Absolutely. A stock A500 with 68000/7MHz should be the reference platform for homebrew developments. Although supporting all bigger Amigas is not forbidden, as long as it still works on the...
Forum: Coders. Asm / Hardware 14 May 2018, 01:13
Replies: 6
Views: 503
Posted By phx
Nearly unknown to most people is that OS3.0...

Nearly unknown to most people is that OS3.0 introduced a new relocation hunk called HUNK_RELRELOC32, which in fact enables resolving relative references between sections! It only works with 32-bit...
Forum: Coders. General 10 May 2018, 13:01
Replies: 26
Views: 1,661
Posted By phx
No, because there is an even better way: it's...

No, because there is an even better way: it's called linker-library!

Just put your routines, which you want to link on demand, in separate object files. Then put all these objects into a library -...
Forum: Coders. General 10 May 2018, 01:45
Replies: 26
Views: 1,661
Posted By phx
Most assemblers generate object files by default....

Most assemblers generate object files by default. Export symbols with XDEF. Import them with XREF. Then link all objects into the final executable:

linker a.o b.o c.o -o myprogram
Note that...
Forum: Coders. General 08 May 2018, 23:37
Replies: 26
Views: 1,661
Posted By phx
Including files which generate code or data is...

Including files which generate code or data is also not a nice practice, IMHO. Includes should only contain definitions (equates, macros). When you do that anyway, you have to be sure that there are...
Forum: Coders. Asm / Hardware 07 May 2018, 13:52
Replies: 6
Views: 484
Posted By phx
Right. It's not so trivial. I nearly forgot about...

Right. It's not so trivial. I nearly forgot about the implicit 1-bit, which is always there and also determines the exponent.

Ok. That's what I wanted to find out. Thanks.
Forum: Coders. Asm / Hardware 06 May 2018, 21:39
Replies: 6
Views: 484
Posted By phx
LOL Indeed. :) I know. But I was curious...

LOL
Indeed. :)

I know. But I was curious to hear other opinions.
Forum: Coders. Asm / Hardware 06 May 2018, 20:41
Replies: 6
Views: 484
Posted By phx
Thanks. Ok. So, from the 96 bits...

Thanks.

Ok. So, from the 96 bits representation I take first 53 bits of the mantissa and the exponent. Then, for the FADD, I take the remaining mantissa bits, and subtract 53 from the original...
Forum: Coders. Asm / Hardware 06 May 2018, 14:24
Replies: 6
Views: 484
Posted By phx
Load extended precision with .d operations

IIRC the 68060 has to emulate FMOVE.X #immediate,Fpn?

Let us assume I want to transfer an 80 bits extended precision constant (like Pi) into an FPU register without using the instruction above and...
Forum: Coders. Asm / Hardware 05 May 2018, 18:24
Replies: 15
Views: 1,156
Posted By phx
Apollo's annotation is valid, but there is so...

Apollo's annotation is valid, but there is so much more missing.

Did you establish an interrupt routine, which plays the music? Is the source complete? Then I don't see anything. Usually...
Forum: Coders. Asm / Hardware 02 May 2018, 00:42
Replies: 12
Views: 680
Posted By phx
You also have to change the display window size....

You also have to change the display window size. DIWSTRT is $2cxx = $2c and DIWSTOP is $2cxx = $12c, so you still have a display window from $2c to $12c with 256 lines.

It makes not much sense to...
Forum: Amiga scene 28 April 2018, 16:10
Replies: 314
Views: 22,561
Posted By phx
Sounds a bit like the common problem most game...

Sounds a bit like the common problem most game have, which disable multitasking and/or take over the system. Probably the file system didn't get the time to update all blocks on the hard disk.
...
Forum: Coders. General 26 April 2018, 22:43
Replies: 19
Views: 4,910
Posted By phx
It always depends on what you want to do. ...

It always depends on what you want to do.

OS-friendly code: use timer.device or dos.library/Delay.
Take over the system: wait for raster-lines, VERTB-interrupts or use the CIA timers

In any...
Forum: Coders. General 26 April 2018, 22:37
Replies: 26
Views: 1,661
Posted By phx
amiga.lib is included in all official NDKs, and...

amiga.lib is included in all official NDKs, and also comes with most compilers, sometimes with slightly modified versions. But amiga.lib should always define symbols like _ciaa, _custom, etc.

It's...
Forum: Coders. General 25 April 2018, 01:34
Replies: 26
Views: 1,661
Posted By phx
The ReadJoypad.s from jst_6.0.zip on JOTD's home...

The ReadJoypad.s from jst_6.0.zip on JOTD's home page seems different, as line 70 and 71 don't reference _custom and _ciaa. So I don't know what you assembled.

BTW, did you notice that the...
Forum: Coders. Asm / Hardware 24 April 2018, 15:41
Replies: 8
Views: 517
Posted By phx
There are PC-relative binary players in the...

There are PC-relative binary players in the distribution archive, which you have to INCBIN in your source. There are also examples.

I didn't know AHX before, and it looks like a nice, C64-style,...
Forum: Coders. General 12 April 2018, 11:34
Replies: 13
Views: 1,092
Posted By phx
I'm not sure what you mean. The cross development...

I'm not sure what you mean. The cross development environment is usually a good shell (so Windows is no option for me) and a Makefile.

I wrote all the conversion tools myself (some are included in...
Forum: Nostalgia & memories 12 April 2018, 10:59
Replies: 130
Views: 39,343
Posted By phx
Part III and IV even provide an option to swap...

Part III and IV even provide an option to swap the meaning of the two buttons.
Forum: Coders. General 12 April 2018, 01:16
Replies: 13
Views: 1,092
Posted By phx
As it is based on vbcc/vasm I should mention that...

As it is based on vbcc/vasm I should mention that they improved a lot since 2015... ;)

To answer the original question: It's really not difficult to set up a cross assembler like vasm (which is...
Showing results 1 to 40 of 1116

 
Forum Jump

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


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