English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 631
Search took 0.06 seconds.
Search: Posts Made By: a/b
Forum: Coders. Asm / Hardware 25 June 2022, 19:46
Replies: 19
Views: 931
Posted By a/b
It's a matter of preference how hard you want to...

It's a matter of preference how hard you want to minmax this, I guess...
I'd split the temple into 16x16 blocks, edge blocks would be copied with a cookie cutter d=ac+b!c (don't need a mask for the...
Forum: Coders. Asm / Hardware 24 June 2022, 19:16
Replies: 19
Views: 931
Posted By a/b
Yeah, attached not only cuts your available time...

Yeah, attached not only cuts your available time in half, it's also detrimental to staggered reloads because you need both paired sprites to be available at the same time, you reach the threshold...
Forum: Coders. Asm / Hardware 24 June 2022, 17:24
Replies: 19
Views: 931
Posted By a/b
Bitplane DMA is not a problem since you don't use...

Bitplane DMA is not a problem since you don't use overscan. But you won't be able to reload all sprite data within 64 pixels (4*16, attached 16col sprites), that's 8*3 words (1 for horizontal...
Forum: Coders. System 24 June 2022, 14:18
Replies: 12
Views: 502
Posted By a/b
Last zero is not "missing", it's in the combined...

Last zero is not "missing", it's in the combined code+bss hunk (22 longwords total, 21 actual, 1 bss) that KS1.3 doesn't clear.
When I loaded your exe into memory and changed the problematic move.w...
Forum: Coders. System 24 June 2022, 00:35
Replies: 12
Views: 502
Posted By a/b
Yup, that's why it doesn't work.

Yup, that's why it doesn't work.
Forum: Coders. General 22 June 2022, 17:09
Replies: 80
Views: 25,954
Posted By a/b
Then I would suggest that you also record a...

Then I would suggest that you also record a bitmap ptr for each star as you draw them (maybe overwrite x/y to save space), so the clearing is then simply: read a bitmap ptr, set whole byte to 0 for...
Forum: Coders. Asm / Hardware 22 June 2022, 15:43
Replies: 5
Views: 298
Posted By a/b
setpatch (e.g. in startup-sequence), or any...

setpatch (e.g. in startup-sequence), or any additional cpu libraries (typically for 040/060) will move it to fast ram if available, otherwise it remains at zero as far as I know.
To mess with vbr...
Forum: Coders. General 21 June 2022, 16:32
Replies: 80
Views: 25,954
Posted By a/b
I'd just go with something similar to what paraj...

I'd just go with something similar to what paraj posted a few pages ago... If you can handle 2KB of code (written for asm-one/pro):

****************************************************************...
Forum: project.Amiga File Server 21 June 2022, 11:29
Replies: 29
Views: 8,338
Posted By a/b
Exactly1!11! What browsers need is more phoning...

Exactly1!11! What browsers need is more phoning to the mothership, protection against ad blockers, mobile UI on large desktop screens, to name a few of the most critical ones. That's so much more...
Forum: Coders. General 20 June 2022, 17:19
Replies: 80
Views: 25,954
Posted By a/b
Speedy 4 cycle instructions are not a problem....

Speedy 4 cycle instructions are not a problem. You could see it as they are executed while the next opcode is being fetched (or waiting on a free dma slot), so they are not slowed down "in the middle...
Forum: Coders. General 20 June 2022, 03:18
Replies: 80
Views: 25,954
Posted By a/b
First pixel is slower (lsl.b #3,d2 12c) than the...

First pixel is slower (lsl.b #3,d2 12c) than the rest (add.b d2,d2 4c), it's what I was talking about in my previous post about replacing 6x btst #x,d2 (10c).
The basic idea is to push every bit in...
Forum: Coders. General 19 June 2022, 17:15
Replies: 80
Views: 25,954
Posted By a/b
In case you don't have to preserve the color and...

In case you don't have to preserve the color and if I understand correctly what you are doing, did you consider lsl.b #3,dx/bcc for the top bit and then add.b dx,dx/bcc for the rest (instead of...
Forum: Coders. Asm / Hardware 18 June 2022, 14:46
Replies: 20
Views: 1,397
Posted By a/b
I was referring to standard 68000 instructions...

I was referring to standard 68000 instructions like movep (that aren't implemented in 060 hardware, and are emulated through 68060.library that most likely isn't loaded if you boot from a floppy)....
Forum: Coders. Asm / Hardware 18 June 2022, 12:08
Replies: 20
Views: 1,397
Posted By a/b
Hmm, good to know, thanks!

Hmm, good to know, thanks!
Forum: Coders. Asm / Hardware 18 June 2022, 02:56
Replies: 20
Views: 1,397
Posted By a/b
Get memory info from exec e.g. MemList(a6),...

Get memory info from exec e.g. MemList(a6), MaxLocMem(a6) (chipmem size), ... and then nuke it.
Speaking of 060, yeah you have to be careful if you kill the system and then use unimplemented 68000...
Forum: Coders. General 18 June 2022, 02:40
Replies: 80
Views: 25,954
Posted By a/b
I don't make any claims this is 100% accurate but...

I don't make any claims this is 100% accurate but it shouldn't be far off.
Forum: Coders. General 18 June 2022, 00:28
Replies: 80
Views: 25,954
Posted By a/b
Yeah, 20c (4 fetch, 4 src operand, 2x4 dst...

Yeah, 20c (4 fetch, 4 src operand, 2x4 dst operand, 4 mem read).
Forum: Coders. Asm / Hardware 16 June 2022, 17:20
Replies: 13
Views: 951
Posted By a/b
You have to access player structures, it...

You have to access player structures, it typically maintains a copy of sample ptrs, periods, volumes, etc. for all the (active) channels. So you take sample ptrs and then you calculate where exactly...
Forum: Coders. Asm / Hardware 15 June 2022, 17:48
Replies: 8
Views: 629
Posted By a/b
Blitter clear if good if you can do it 100% in...

Blitter clear if good if you can do it 100% in parallel and never have to wait for it to finish. Otherwise, cpu+blitter split is faster. Blitclear is 0 sources, 1 destination, so it has an idle state...
Forum: Coders. General 13 June 2022, 20:15
Replies: 80
Views: 25,954
Posted By a/b
You can still do it in 2 passes by shifting Y...

You can still do it in 2 passes by shifting Y 16-* in the opposite direction (and doing a few minor adjustments).
In one of my routines I'm using fixed point 11:5 for both X and Y, and screen width...
Forum: Coders. General 13 June 2022, 15:30
Replies: 80
Views: 25,954
Posted By a/b
My point was, at least that's how I'd approach...

My point was, at least that's how I'd approach these things, if you write a game that heavily relies on drawing hundreds of pixels every frame you do not say: OK, I have a drawpixel() routine that...
Forum: Coders. General 12 June 2022, 20:10
Replies: 80
Views: 25,954
Posted By a/b
No offence man, but that's exactly how you end up...

No offence man, but that's exactly how you end up with crappy atari ports to amiga. I've written at least a dozen different fx with dots (thousands of pix per frame, 50fps, and yeah that's not a...
Forum: Coders. Asm / Hardware 11 June 2022, 23:47
Replies: 20
Views: 1,397
Posted By a/b
If you are ignoring the system, anything above...

If you are ignoring the system, anything above $0100 is free game on 68000-060 (FPU+MMU have extra stuff above $00c0, and 060 has its own vectors up to $0100).
If you *really* know what you are...
Forum: Coders. Asm / Hardware 09 June 2022, 00:44
Replies: 224
Views: 222,468
Posted By a/b
Ah, you need both d0 and d1. OK, I thought you...

Ah, you need both d0 and d1. OK, I thought you only needed d0.

How about this (020+, as you mentioned)?

; addq.l #1,d3 ; include this if needed (e.g. d3=23 for 24 shifts)
moveq #32,d2...
Forum: Coders. Asm / Hardware 08 June 2022, 23:25
Replies: 224
Views: 222,468
Posted By a/b
Perhaps this works? Didn't do much testing...

Perhaps this works? Didn't do much testing (looked fine with d3=24, 16, 8, 4, 0).

; addq.w #1,d3 ; include this if needed (e.g. d3=23 for 24 shifts)
moveq #0,d2
bset d3,d2
subq.l #1,d2 ;...
Forum: Coders. Asm / Hardware 08 June 2022, 15:48
Replies: 19
Views: 701
Posted By a/b
To keep all code and/or data in a single hunk...

To keep all code and/or data in a single hunk resulting in shorter and faster code (pc relative addressing for everything, all data accessible via single base address register, no relocation tables...
Forum: Coders. Asm / Hardware 08 June 2022, 14:05
Replies: 19
Views: 701
Posted By a/b
Yup, that's what I've been doing in my code, so...

Yup, that's what I've been doing in my code, so that modifed asm-pro can produce code+bss (or data+bss) hunks. It's one of the things I really missed in the entire asm-one family of assemblers (it...
Forum: Coders. Asm / Hardware 08 June 2022, 06:58
Replies: 19
Views: 701
Posted By a/b
As already noted, the problem is code+bss hunk....

As already noted, the problem is code+bss hunk. Your first "code" hunk is $368 lwords allocated and $367 actual, meaning the last lword is bss, and is never initialized under KS1.x. The first time it...
Forum: Retrogaming General Discussion 04 June 2022, 23:40
Replies: 32
Views: 1,639
Posted By a/b
xenon2 megablast >>>>> everything else ...

xenon2 megablast >>>>> everything else


mulu.w #sarcasm,d0
Forum: Coders. Asm / Hardware 03 June 2022, 19:09
Replies: 22
Views: 1,476
Posted By a/b
Completely wrong. These days we have AI code...

Completely wrong. These days we have AI code generated by AI compilers running on AI hardware and operating on AI cloud AI data. They can do all of that and more, can't you see?
Also, you're selling...
Forum: Coders. Asm / Hardware 02 June 2022, 15:49
Replies: 9
Views: 668
Posted By a/b
Also (several conditions, but in some cases they...

Also (several conditions, but in some cases they are all true), if there's only a small number of cmps to be made and/or you don't want to use a jmp table, and the numbers are close to each others,...
Forum: support.WinUAE 19 May 2022, 17:56
Replies: 11
Views: 1,345
Posted By a/b
Finally sorted out my old HW for easy access... ...

Finally sorted out my old HW for easy access...
Tested on an A500 with 7mhz 68000, all ints/dma disabled, multiple 1000 reps tests: addi|subi|andi|ori|eori.l #<immed>,dx all take 16 cycles. Just in...
Forum: Coders. Asm / Hardware 14 May 2022, 14:06
Replies: 3
Views: 931
Posted By a/b
The msbitset example above doesn't work if d1 is...

The msbitset example above doesn't work if d1 is 0 (returns 0 if no bit is set or bit0 is set). Alternative (returns -1.w if no bit is set):

moveq #7,d0
Loop bclr d0,d1
dbne d0,Loop


edit:...
Forum: Coders. Asm / Hardware 14 May 2022, 11:42
Replies: 21
Views: 1,742
Posted By a/b
Unsized instructions (in case there are multiple...

Unsized instructions (in case there are multiple options, assembler specific of course) are usually resolved as .w, so it's better to use .l both times.

Speed/size is probably not an issue here,...
Forum: support.WinUAE 02 May 2022, 14:52
Replies: 11
Views: 1,345
Posted By a/b
Arrow Page 121 (this is what I pressume you're...

Page 121 (this is what I pressume you're referring to):

Instruction Size op #,Dn op #,An op #,M
ANDI Byte, Word 8(2/0) — 12(2/1)+
Long 14(3/0) — 20(3/2)+


But also on page 120...
Forum: Coders. Asm / Hardware 21 April 2022, 14:33
Replies: 9
Views: 1,420
Posted By a/b
Not sure what the problem is, I couldn't entirely...

Not sure what the problem is, I couldn't entirely understand your explanation. In any case, the effect in the first picture looks like this to me:
1. bitmap with only one bitplane, used as a static...
Forum: Coders. Asm / Hardware 20 April 2022, 20:16
Replies: 33
Views: 2,718
Posted By a/b
I'm using this in asm-one/pro, similar to assert...

I'm using this in asm-one/pro, similar to assert (IF2 = assembler is in pass 2):

_CHECK MACRO (CC, Value1, Value2)
IF2
IF\1 (\2)-(\3)
PRINTT "\2 is *\1* \3."
PRINTV (\2)-(\3)
FAIL...
Forum: Coders. Asm / Hardware 05 April 2022, 19:21
Replies: 41
Views: 3,676
Posted By a/b
OK, to make it simple to understand... If data...

OK, to make it simple to understand... If data bus is e.g. 32-bit then the cpu always reads in 32-bit chunks and from 32-bit aligned addresses (0, 4, 8, 12, ...).
If you read a byte from address 5...
Forum: Coders. Asm / Hardware 05 April 2022, 18:00
Replies: 41
Views: 3,676
Posted By a/b
There is a bug, you read a word from the font...

There is a bug, you read a word from the font offset table into d3, and then add d3 as a longword to a1/a2. And d3 has old data in the upper word pointing to some fastmem location.
Either add d3 as...
Forum: Coders. Asm / Hardware 05 April 2022, 06:30
Replies: 41
Views: 3,676
Posted By a/b
The problem is data you blit is in fast memory...

The problem is data you blit is in fast memory ($dff04c and $dff050 contain fast memory ptrs), that's for the corrupt font/text on top of the red robocop image.

Also, DisableSystem is not 100%...
Showing results 1 to 40 of 631

 
Forum Jump

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


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