English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 4221
Search took 0.33 seconds.
Search: Posts Made By: meynaf
Forum: Coders. General 07 May 2021, 11:51
Replies: 13
Views: 491
Posted By meynaf
Indeed no problem with the PNG. It does not have...

Indeed no problem with the PNG. It does not have anything special, not even transparency which could eventually have caused problems.

It appears you're facing a bug of IFF converter.
Forum: Coders. General 06 May 2021, 21:25
Replies: 86
Views: 4,784
Posted By meynaf
Why would I ? Too small example, too much OS...

Why would I ? Too small example, too much OS specific code. The fact that it's optimised for speed rather than code size doesn't make the test very meaningful either.


And 40 bytes of code just...
Forum: Coders. General 06 May 2021, 11:58
Replies: 13
Views: 491
Posted By meynaf
Problem in the source PNG file maybe ? Would it...

Problem in the source PNG file maybe ? Would it be possible to have access to it ?
Forum: Coders. Asm / Hardware 05 May 2021, 15:41
Replies: 14
Views: 459
Posted By meynaf
As for timing, i can't tell for sure but normally...

As for timing, i can't tell for sure but normally there should be no difference.
Code has same size, nothing special.

Normally the assembler is able to convert LEA label,a0 to LEA label(pc),a0 if...
Forum: Coders. Asm / Hardware 05 May 2021, 09:39
Replies: 6
Views: 526
Posted By meynaf
assemblers accepting faulty code

Look at this :

beq.b .truc-1
.truc

Not nice, i agree.
While Devpac3 rightfully (?) rejects this, AsmOne (1.48), PhxAss (4.44) and VAsm (1.7e) all accept it without a warning and assemble to...
Forum: Coders. Asm / Hardware 02 May 2021, 14:05
Replies: 12
Views: 663
Posted By meynaf
The above code destroys the contents of d0. If...

The above code destroys the contents of d0.
If this isn't acceptable, you can also do :

move(q).l #~<BitsToCheck>,d1
or.l d0,d1
addq.l #1,d1
beq(.b) AllBitsOn
Forum: Coders. Asm / Hardware 30 April 2021, 13:08
Replies: 74
Views: 4,688
Posted By meynaf
Returning here after a while, this is the best i...

Returning here after a while, this is the best i could find to do the thing without anything fancy (if not filthy) :

move.w (a5),d7
and.w (a6)+,d7
jmp ([a4,d7.w*4])

And this, repeated for...
Forum: support.Apps 30 April 2021, 10:15
Replies: 5
Views: 301
Posted By meynaf
If "save executable" just makes a copy of the...

If "save executable" just makes a copy of the file this sounds quite normal...
Forum: Coders. Asm / Hardware 30 April 2021, 09:54
Replies: 12
Views: 663
Posted By meynaf
For your first example, you can just have these...

For your first example, you can just have these two bits in same byte.
And instead of having to check if these are both set, compare them with 0 by reversing their meaning :

tst.b obj_state(ax)...
Forum: support.Apps 30 April 2021, 08:00
Replies: 5
Views: 301
Posted By meynaf
First step is to get a file that has the exact...

First step is to get a file that has the exact same size. Normally turning off all asm optimizations is enough.
Then compare the files and check the diffs one by one. It is sometimes just impossible...
Forum: support.Games 27 April 2021, 07:45
Replies: 1
Views: 245
Posted By meynaf
If what you want to do is just play, it might be...

If what you want to do is just play, it might be easier to get another version without copy protection.
Forum: Coders. General 26 April 2021, 20:53
Replies: 107
Views: 10,716
Posted By meynaf
Lower memory, as well as the hardware, can't be...

Lower memory, as well as the hardware, can't be accessed from user mode. This is fixed by the means of custom mmu chip on the mobo, TOS does nothing about it.
This makes the ST a little more robust...
Forum: Coders. Asm / Hardware 25 April 2021, 11:19
Replies: 21
Views: 947
Posted By meynaf
I often forget about 68000 timings. Too much 020+...

I often forget about 68000 timings. Too much 020+ code probably. ;)



I'm afraid mixing audio this way can be problematic - two channels with normal amplitude will lead to excessive clipping,...
Forum: Coders. Asm / Hardware 25 April 2021, 08:46
Replies: 13
Views: 685
Posted By meynaf
Dunno for vasm, but for phxass the following will...

Dunno for vasm, but for phxass the following will assemble without errors :

mc68030
pmove.l tt0,(8,a0)
pmove.l tt1,(12,a0)
mc68040
movec mmusr,d0
movec tc,d0
movec itt0,d0
Forum: Coders. Asm / Hardware 25 April 2021, 08:35
Replies: 21
Views: 947
Posted By meynaf
Another possibility (but untested) : turn signed...

Another possibility (but untested) : turn signed into unsigned, as unsigned byte clamping is easier.

move.w d2,d1 ; with d2=$80
add.w d0,d1
cmp.w a0,d1 ; with a0=$100
blo.s .done
sge...
Forum: Coders. Asm / Hardware 25 April 2021, 08:11
Replies: 21
Views: 947
Posted By meynaf
I thought about the LUT but depending on target...

I thought about the LUT but depending on target cpu the gain could be small or even zero. However if you're mixing audio samples (what else could be signed bytes ?) you can fit a volume...
Forum: Coders. Asm / Hardware 24 April 2021, 18:14
Replies: 21
Views: 947
Posted By meynaf
That one's more difficult due no easy way to...

That one's more difficult due no easy way to check if it's in range or not.
Quickest i could come up with :

move.b d0,d1
ext.w d1
cmp.w d1,d0
beq.s .done
slt d0
eori.b #$7f,d0
.done
Forum: Coders. Asm / Hardware 24 April 2021, 11:40
Replies: 25
Views: 1,152
Posted By meynaf
I second that. DeliTracker does the same :...

I second that.
DeliTracker does the same : trigger a SoftInt to defer the work so that the player does not disturb anyone.

Also, as mentioned CIA-B has high priority but CIA-A is lower than...
Forum: Amiga scene 23 April 2021, 12:11
Replies: 22
Views: 2,132
Posted By meynaf
There is some challenge in the sense you have to...

There is some challenge in the sense you have to fight against the peculiarities of the target platform. But this makes it even more boring. IOW, PCs are powerful, but they still suck.
Forum: Coders. Asm / Hardware 21 April 2021, 15:14
Replies: 6
Views: 482
Posted By meynaf
Yes ! There is indeed this possibility : ...

Yes ! There is indeed this possibility :

bfexts myvar(a5){0:32-25},d0
move.l d0,myvar(a5)

Works for lsr (-> bfextu) or asr, but useless for lsr,rol,ror for which similar tricks also have to...
Forum: Amiga scene 21 April 2021, 14:29
Replies: 28
Views: 1,632
Posted By meynaf
The situation would be different, at least for...

The situation would be different, at least for me, if the instruction set had been enhanced to make coding easier and more enjoyable, like 68020+ is better than 68000 in that aspect. But alas, not...
Forum: Amiga scene 21 April 2021, 14:03
Replies: 28
Views: 1,632
Posted By meynaf
Why would we want to do that ? If we want to code...

Why would we want to do that ? If we want to code on a fast machine, there are faster ones. If we want to code on a limited one, current miggies are perfectly fit. If we want to code because of the...
Forum: Amiga scene 21 April 2021, 13:33
Replies: 28
Views: 1,632
Posted By meynaf
If the "get paid" really means it and this is not...

If the "get paid" really means it and this is not for vampire exclusive, then i might be interested.
Forum: Coders. Asm / Hardware 21 April 2021, 13:11
Replies: 6
Views: 482
Posted By meynaf
small code contest

Hi, time for a little challenge.
Not for anything big, time is too often limited for many of us - even though i'd clearly could find a few cases.

It's about doing the work of an instruction that...
Forum: Retrogaming General Discussion 21 April 2021, 10:37
Replies: 66
Views: 4,224
Posted By meynaf
I have a program that is 2.5 times faster on 030...

I have a program that is 2.5 times faster on 030 than on similarly clocked 060 because of this.
Forum: support.WinUAE 20 April 2021, 08:51
Replies: 11
Views: 868
Posted By meynaf
The 100% refers to the usage of the single core...

The 100% refers to the usage of the single core that's used to run the emulation. It is not about the emulated cpu.
Forum: Retrogaming General Discussion 20 April 2021, 08:45
Replies: 66
Views: 4,224
Posted By meynaf
It's easy to be faster when you remove half of...

It's easy to be faster when you remove half of the stuff...
Forum: Amiga scene 20 April 2021, 08:42
Replies: 175
Views: 30,269
Posted By meynaf
Strange interpretation you made. If they have it,...

Strange interpretation you made. If they have it, it's of course the version for another machine, not the amiga one. So they can ask for this one, obviously. If they don't, how come they know the...
Forum: Coders. Asm / Hardware 19 April 2021, 12:05
Replies: 3
Views: 541
Posted By meynaf
Normally the technique is just about making the...

Normally the technique is just about making the program self-detaching.
I would skip or remove the code that does the process creation and exits.
Forum: Retrogaming General Discussion 17 April 2021, 07:16
Replies: 66
Views: 4,224
Posted By meynaf
040 is barely twice faster than 030 and...

040 is barely twice faster than 030 and overheats, which 030 does not.
Forum: Coders. Asm / Hardware 14 April 2021, 17:01
Replies: 13
Views: 690
Posted By meynaf
I don't usually do this right after an add, but...

I don't usually do this right after an add, but here it goes :

add.w d1,d0
bvc.s .done
spl d0
ext.w d0
eori.w #$7fff,d0
.done
Forum: Retrogaming General Discussion 14 April 2021, 11:14
Replies: 194
Views: 10,841
Posted By meynaf
Something like "you would not be able to tell...

Something like "you would not be able to tell that it wasn't a YM".



But then you have to change both the sample and the volume, which makes matters a little more complex than just altering...
Forum: Retrogaming General Discussion 12 April 2021, 11:38
Replies: 194
Views: 10,841
Posted By meynaf
Yes it is able. It has been done for mods, both...

Yes it is able. It has been done for mods, both Turrican musics have been done, and even simple 68000 can do this. Don't expect very high quality, though -- and exact cpu usage will depend on the...
Forum: Retrogaming General Discussion 12 April 2021, 10:07
Replies: 194
Views: 10,841
Posted By meynaf
Errrh, no. You cannot "easily" reproduce YM2149...

Errrh, no. You cannot "easily" reproduce YM2149 sound on Paula. Not accurately in any case.

First, the volume levels of Paula are (more or less) linear, whereas YM has logarithmic scale. This...
Forum: Coders. C/C++ 12 April 2021, 08:25
Replies: 26
Views: 1,646
Posted By meynaf
That may well be outside your scope of budget, at...

That may well be outside your scope of budget, at least, if you're alone donating.
Forum: Coders. C/C++ 10 April 2021, 12:14
Replies: 26
Views: 1,646
Posted By meynaf
Like everything else it is a matter of...

Like everything else it is a matter of motivation.
A petition would not work.

A huge donation could, though :p
(this is where ppl asking for the moon suddenly disappear overnight)
Forum: Coders. Asm / Hardware 01 April 2021, 21:21
Replies: 74
Views: 4,688
Posted By meynaf
What are these other ways ? I have...

What are these other ways ?



I have coded a debugger but it's in vm code, not 68k code. So aside of a working trace mode, nothing special is needed in the vm itself.
Forum: Coders. Asm / Hardware 01 April 2021, 13:13
Replies: 74
Views: 4,688
Posted By meynaf
I meant that other interrupt sources will have to...

I meant that other interrupt sources will have to do the same kind of work.
For example, i need to generate a vblank interrupt and that's not int1 but it still needs to trigger the change in the vm.
Forum: Coders. Asm / Hardware 01 April 2021, 08:55
Replies: 74
Views: 4,688
Posted By meynaf
That's a good idea ! KS1.x is no big deal,...

That's a good idea !
KS1.x is no big deal, app's min is already v37.

The problem here lies in the fact other interrupts than just multitask can trigger something in the vm.
Current sources are :...
Forum: Coders. Asm / Hardware 31 March 2021, 17:46
Replies: 74
Views: 4,688
Posted By meynaf
Right, it wouldn't be worth doing. But if the...

Right, it wouldn't be worth doing.
But if the engine has to grow anyway for other reasons, the situation changes.

Handler for trace and interrupts is the same. If interrupts are handled in one...
Showing results 1 to 40 of 4221

 
Forum Jump

All times are GMT +2. The time now is 10:13.


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