English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 180
Search took 0.03 seconds.
Search: Posts Made By: a/b
Forum: Coders. Asm / Hardware 29 May 2020, 05:47
Replies: 14
Views: 574
Posted By a/b
Well, and another "small" problem. It's supposed...

Well, and another "small" problem. It's supposed to run from a hard-drive, and floppy disk based timing is probably not feasible. Didn't click right away ;p.
Forum: Coders. Asm / Hardware 29 May 2020, 05:36
Replies: 14
Views: 574
Posted By a/b
The original code seems to use disk pulse for...

The original code seems to use disk pulse for delay, so that's 300 rpm or 5 rps(econd), resulting in a 1 second delay (it loops 5 times). The problem here is that HD drives run at 150 rpm....
Forum: Coders. C/C++ 23 May 2020, 15:14
Replies: 6
Views: 467
Posted By a/b
Not sure if that's a typo in your actual code or...

Not sure if that's a typo in your actual code or only the snippet you posted, but this line you posted is wrong:

message+(struct IntuiMessage *)GetMsg(CurrentWindow->UserPort);
...
Forum: Coders. Asm / Hardware 23 May 2020, 13:39
Replies: 3
Views: 671
Posted By a/b
Asm-one&co can tell you that. You select a block...

Asm-one&co can tell you that. You select a block of code and then it lists all used registers.
There is a bug (in some asm-one versions, at least) where it doesn't clear the line so if the previous...
Forum: Coders. C/C++ 23 May 2020, 13:35
Replies: 6
Views: 467
Posted By a/b
// message+(struct IntuiMessage...

// message+(struct IntuiMessage *)GetMsg(CurrentWindow->UserPort);
message=(struct IntuiMessage *)GetMsg(CurrentWindow->UserPort);
Forum: Coders. Asm / Hardware 30 April 2020, 05:09
Replies: 83
Views: 11,320
Posted By a/b
I don't, go ahead. Any code I post here is under...

I don't, go ahead. Any code I post here is under the DWTFYW license ;p.
Forum: Coders. Asm / Hardware 23 January 2020, 21:59
Replies: 2
Views: 356
Posted By a/b
It looks like these files are raw-copied from a...

It looks like these files are raw-copied from a floppy, with block headers. Every 512 bytes there's 24 bytes of trash (mostly zeros). So you'd have to strip that out.
10 remove 24 bytes
20 copy...
Forum: Coders. Asm / Hardware 22 January 2020, 17:52
Replies: 17
Views: 702
Posted By a/b
If you are starting to learn asm, here's a random...

If you are starting to learn asm, here's a random advice (since I noticed it in some of the examples above): if there's more than one possible operand size, always specify what you want.
For example...
Forum: Coders. Asm / Hardware 22 January 2020, 17:32
Replies: 13
Views: 905
Posted By a/b
(Second, mem to reg) movem.w automatically...

(Second, mem to reg) movem.w automatically sign-extends registers to longwords.
Forum: Coders. Asm / Hardware 22 January 2020, 02:01
Replies: 17
Views: 702
Posted By a/b
lea frame(pc),a0 ; or without (pc) if it's in a...

lea frame(pc),a0 ; or without (pc) if it's in a different section
move.w (a0),d0
eor.w #4,(a0) ; this will cycle 0,4,0,4,... use addq.w #4,(a0) to increment 0,4,8,...
move.l...
Forum: Coders. Asm / Hardware 07 January 2020, 16:33
Replies: 33
Views: 1,347
Posted By a/b
That's what I suggested earlier, some kind of a...

That's what I suggested earlier, some kind of a flag/switch. Decide what the default is, whether the most common case or what you feel is the correct way of handling it, and then let the users...
Forum: Coders. Asm / Hardware 04 January 2020, 22:51
Replies: 33
Views: 1,347
Posted By a/b
* = current address

* = current address
Forum: Coders. Asm / Hardware 04 January 2020, 22:29
Replies: 33
Views: 1,347
Posted By a/b
External symbol (xref), not a 'regular' EQU/SET/=...

External symbol (xref), not a 'regular' EQU/SET/= symbol. And also I wasn't sufficiently specific when I said label/symbol earlier.
So if it's a label or xref, use pc-relative addressing, otherwise...
Forum: Coders. Asm / Hardware 04 January 2020, 21:08
Replies: 33
Views: 1,347
Posted By a/b
Make it configurable via flag? Putting...

Make it configurable via flag?
Putting everything aside, I'd say the expected is to encode the offset into instruction. It does make sense to me, since you are not referencing a label/symbol so the...
Forum: support.WinUAE 02 January 2020, 16:49
Replies: 1
Views: 502
Posted By a/b
addq/adda

Opcode $5448 is disassembled (in winuae debugger 4.3.0 19.12.2019 64-bit) as adda.w #2,a0 but in fact it's addq.w #2,a0. Also, if were adda it would have an extra operand word ($0002) but it doesn't....
Forum: Coders. Asm / Hardware 28 December 2019, 23:00
Replies: 9
Views: 732
Posted By a/b
http://amigadev.elowar.com/read/ADCD_2.1/Hardware_...

http://amigadev.elowar.com/read/ADCD_2.1/Hardware_Manual_guide/node0060.html
3rd column: W,R W=write-only; R=read-only
Forum: Coders. Asm / Hardware 26 December 2019, 23:21
Replies: 18
Views: 816
Posted By a/b
Yeah, scaling filter can be evil. Maybe it's not...

Yeah, scaling filter can be evil. Maybe it's not a bug, but working as intended... Check with Toni in any case.
A while ago I had a similar problem: http://eab.abime.net/showthread.php?t=97161...
Forum: Coders. Asm / Hardware 22 December 2019, 12:36
Replies: 19
Views: 977
Posted By a/b
Not going to tell you how to design stuff, but I...

Not going to tell you how to design stuff, but I have to say you are... too artistic :P.
266? 37? What's wrong with nicely rounded sizes and coords, multiples of 16. Makes life much easier.

Now,...
Forum: Coders. General 20 December 2019, 15:22
Replies: 17
Views: 1,113
Posted By a/b
/*if (topLeft) { reverse =...

/*if (topLeft) {
reverse = FALSE;
fci = FALSE;
} else {
reverse = TRUE;
fci = TRUE;
...
Forum: Coders. C/C++ 18 December 2019, 19:34
Replies: 13
Views: 1,516
Posted By a/b
Hmm, you're right. Such arrays (and structs) are...

Hmm, you're right. Such arrays (and structs) are constructed in run-time on stack.
I'm sure I knew that at some point, spoiled by not bothering much about such details in c++, and doing whatever I...
Forum: Coders. C/C++ 18 December 2019, 18:54
Replies: 13
Views: 1,516
Posted By a/b
It's still safe. In this case a temporary object...

It's still safe. In this case a temporary object will be constructed on stack but its scope is *not* limited to if's {} (it's limited to current function).

WORD* p_array = NULL;
WORD x = 1, y =...
Forum: Coders. C/C++ 18 December 2019, 18:13
Replies: 13
Views: 1,516
Posted By a/b
Yeah, it's legal. It's the same as: char* x...

Yeah, it's legal. It's the same as:

char* x = NULL;
if (...) {
x = "whatever";
}
y(x);

The value you assign is anonymous static const, it's fully known at compile time, and it's not...
Forum: Coders. General 16 December 2019, 19:04
Replies: 17
Views: 1,113
Posted By a/b
OK, i see. Not a typical poly renderer. ...

OK, i see. Not a typical poly renderer.

Option 1:
Assuming you clear the entire bitplane beforehand, and the horizon is a simple straight line: find min_y and max_y (screen coords) of the plane...
Forum: Coders. General 16 December 2019, 17:21
Replies: 17
Views: 1,113
Posted By a/b
Well, that's a different picture than the one in...

Well, that's a different picture than the one in the first post.

In any case, you wouldn't have do draw that line if you were using the FCI bit. When you are doing filled poly clipping, you...
Forum: Coders. General 16 December 2019, 15:42
Replies: 17
Views: 1,113
Posted By a/b
You can set the initial state (normally 0, so it...

You can set the initial state (normally 0, so it skips pixels until it hits a 1) in bltcon1 carry-in bit. If you set it to 1, it will start filling from the start of each line (right border in fill...
Forum: Coders. Asm / Hardware 09 December 2019, 11:07
Replies: 18
Views: 846
Posted By a/b
Getting too old for this :(, should've noticed...

Getting too old for this :(, should've noticed earlier. 2 cycles faster, so the same as yours, but without extra mem accesses.

...
move.w #%1010110011010101,d0

moveq #0,d1
move.b d0,d1...
Forum: Coders. Asm / Hardware 09 December 2019, 03:34
Replies: 18
Views: 846
Posted By a/b
Slightly lower cycle count (-4): ... ...

Slightly lower cycle count (-4):

...
move.w #%1010110011010101,d0

moveq #0,d1
move.b d0,d1
lsr.w #8,d0
add.w d0,d0
move.l lut(pc,d0.w),d2
Forum: Coders. Asm / Hardware 05 December 2019, 04:57
Replies: 12
Views: 1,035
Posted By a/b
Don't have access to real hardware at the...

Don't have access to real hardware at the moment... Probably not the reason, but it's a problem. You're doing this:
- init empty view (LoadView(), ...)
- Forbid() to disable multitasking
- bang...
Forum: Coders. Asm / Hardware 05 December 2019, 01:32
Replies: 12
Views: 1,035
Posted By a/b
You are not terminating the copper list you...

You are not terminating the copper list you generate (with e.g. move.l #$fffffffe,(a6)+) just before the 'working' #ifdef.
Forum: Coders. Asm / Hardware 04 December 2019, 02:59
Replies: 12
Views: 1,035
Posted By a/b
> Is there some kind of timing limitation on real...

> Is there some kind of timing limitation on real hardware where it is possible to overuse the blitter?
Nope.

> BlitWait before the VBlank (not sure if this one is needed?)
Not needed.

320...
Forum: Coders. General 30 November 2019, 00:41
Replies: 106
Views: 5,015
Posted By a/b
Oh, crap... My bad, it's supposed to be /32 (or...

Oh, crap... My bad, it's supposed to be /32 (or (/8)>>2), which is pixels to longwords. I have it written correctly in my test code, but I only copy/pasted the actual function.
Old/new modulo, blit...
Forum: Coders. Asm / Hardware 28 November 2019, 21:20
Replies: 7
Views: 740
Posted By a/b
I typically handle this by always using pairs of...

I typically handle this by always using pairs of copper lists, similar to you, one for initialization/transition and the main one. The init one contains all the constant stuff (usually colors, $1fc,...
Forum: Coders. General 28 November 2019, 20:27
Replies: 106
Views: 5,015
Posted By a/b
Getting annoyed? Good, there is more ;P. ...

Getting annoyed? Good, there is more ;P.


movem.l d2-d7/a2-a6,-(a7)
asl.l #2,d2 ; longwords to bytes

move.w d1,d7
asl.w #2,d7 ; longwords to bytes
sub.w d7,d3
move.w d3,a6 ; a6 =...
Forum: Coders. General 28 November 2019, 15:49
Replies: 106
Views: 5,015
Posted By a/b
New try: using d/y/x loops instead of y/d/x. ...

New try: using d/y/x loops instead of y/d/x.

Modulo must be calculated *differently*!!. Instead of
(bitmap_width*bitmap_height-blit_width)>>2
you have to pass this in d2
...
Forum: Coders. General 27 November 2019, 20:21
Replies: 106
Views: 5,015
Posted By a/b
To go back to the original discussion... One...

To go back to the original discussion...
One way of speeding it up further would probably be to switch loop order (1..100 outer and 1..3 inner is slower than 1..3 outer and 1..100 inner), since...
Forum: Coders. General 27 November 2019, 15:28
Replies: 106
Views: 5,015
Posted By a/b
Here is the thing with c vs. asm. And it's not...

Here is the thing with c vs. asm. And it's not meant as a critique of Bartman, original poster, or anyone else. It's good to have more people work with Amiga, regardless of the language.
Take a...
Forum: Coders. Asm / Hardware 26 November 2019, 20:45
Replies: 4
Views: 498
Posted By a/b
Use llist: dc.l 4 instead because you are...

Use
llist: dc.l 4
instead because you are using longwords, which are 4 bytes each. And 8(a0,d0.l), otherwise you'll be out of bounds.
Forum: Coders. General 26 November 2019, 14:59
Replies: 106
Views: 5,015
Posted By a/b
adda.x reg,areg is 8 cycles, even addq.x #y,areg...

adda.x reg,areg is 8 cycles, even addq.x #y,areg is 8 on 68000. It's just slower because it's always 32-bit. You'd have to make a destination true 16-bit (e.g. add.w reg,dx) to make it work in 4...
Forum: Coders. General 26 November 2019, 14:48
Replies: 106
Views: 5,015
Posted By a/b
I just memorized: (a&mask)|(b&!mask) =...

I just memorized: (a&mask)|(b&!mask) = ((a^b)&mask)^b
So you eor a with b before and after masking it.

It reminded me of c2p code, but that was after I posted the code and went to sleep and kept...
Forum: Coders. Asm / Hardware 26 November 2019, 05:31
Replies: 2
Views: 371
Posted By a/b
If you are using kickstart 2.0+ and 68020+ I'd...

If you are using kickstart 2.0+ and 68020+ I'd switch to v1.48/1.49rc2 or use asm-pro. Both are very similar and a pretty big upgrade.

INCBIN "abc.bin" works fine for me in 1.49rc2:
- default dir...
Showing results 1 to 40 of 180

 
Forum Jump

All times are GMT +2. The time now is 09:12.


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