English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 64
Search took 0.01 seconds.
Search: Posts Made By: a/b
Forum: Coders. Asm / Hardware 21 October 2018, 15:38
Replies: 560
Views: 17,411
Posted By a/b
Bruce, STOP MAKING SENSE! Only mickey mouse logic...

Bruce, STOP MAKING SENSE! Only mickey mouse logic is allowed in this benchmark.
Forum: Coders. General 26 August 2018, 11:49
Replies: 120
Views: 7,377
Posted By a/b
Try this: do_middle moveq #17+2, d0 ...

Try this:

do_middle
moveq #17+2, d0
sub.w d5, d0
add.w d4, d0
blt do_right
add.w d0, d0
jmp movetable(pc, d0.w)
Forum: Coders. Asm / Hardware 04 February 2018, 21:47
Replies: 7
Views: 566
Posted By a/b
I'm using two tables with precalculated sprite...

I'm using two tables with precalculated sprite x/y (32 bits), so the code looks something like:

; a0=tablex, a1=tabley, d0=spritex, d1=spritey
add.w d0,d0
add.w d0,d0
move.l (a0,d0.w),d0
...
Forum: Coders. Asm / Hardware 23 January 2018, 11:29
Replies: 76
Views: 7,836
Posted By a/b
Apologies for the buggy code (/me queues...

Apologies for the buggy code (/me queues Scrambled Mind).
There is an overflow that managed to sneak through my test data ($159 => $951 => $000 => $fff => $123 => $789 => $321). $fff => $321 works...
Forum: Coders. Asm / Hardware 18 January 2018, 16:39
Replies: 18
Views: 757
Posted By a/b
It was a reply to chb, regarding the bad example...

It was a reply to chb, regarding the bad example with OR/ORI, which were mentioned in the last few posts beforehand, so I blindly used them in my example, and apparently that wasn't a good idea....
Forum: Coders. Asm / Hardware 18 January 2018, 16:12
Replies: 18
Views: 757
Posted By a/b
As I said, generally speaking. I didn't check...

As I said, generally speaking. I didn't check every opcode, etc.
Yes, the example for OR/ORI turns out to be bad, it's exactly as you stated. But that's not the case for every instruction PeterK...
Forum: Coders. Asm / Hardware 18 January 2018, 15:28
Replies: 18
Views: 757
Posted By a/b
Generally speaking... They are 'different'...

Generally speaking... They are 'different' instructions, they have different opcodes, but they do the same thing.
ORI allows a range of target addressing modes (ORI #immed,<ea>), while OR allows a...
Forum: Coders. Asm / Hardware 27 November 2017, 17:00
Replies: 32
Views: 1,922
Posted By a/b
VBL won't interrupt Blitter handler and vice...

VBL won't interrupt Blitter handler and vice versa. You'll need one handler and then check INTREQR bits and clear them appropriately, as pointed out above.
Something like:

btst #6,$dff01e
...
Forum: Coders. System 04 October 2017, 17:57
Replies: 51
Views: 8,546
Posted By a/b
A couple of suggestions for CachePreDMA (2 bytes...

A couple of suggestions for CachePreDMA (2 bytes shorter and one less branch):

CachePreDMA:
MOVEM.L A0/A5,-(SP)
MOVE.L A0,D1
ANDI.L #$FFE00000,D1 ;Chip RAM
BEQ.B...
Forum: Coders. General 21 September 2017, 06:02
Replies: 11
Views: 1,060
Posted By a/b
Asm-one is saving bookmarks in a binary format,...

Asm-one is saving bookmarks in a binary format, you can disable that in settings (A-[): general, uncheck save marks.
If you are actually using them, well then you'll most likely have to preprocess...
Forum: Coders. C/C++ 12 August 2017, 19:12
Replies: 29
Views: 2,577
Posted By a/b
You generally don't use v-printf style functions...

You generally don't use v-printf style functions with individual arguments, you use them with a variable length argument list. Something like:

int some_function(int first, const char* format, ...)...
Forum: Coders. C/C++ 29 July 2017, 01:25
Replies: 43
Views: 3,336
Posted By a/b
First you declare them as c functions (lines...

First you declare them as c functions (lines 18-36). Then you implement them as c++ functions (lines 80+).
Did you try to put the entire implementation, lines 80-285, inside extern "C"?

EDIT: OK,...
Forum: Coders. C/C++ 23 July 2017, 16:49
Replies: 28
Views: 1,963
Posted By a/b
How is clparams defined, as [9] or [11]? This...

How is clparams defined, as [9] or [11]?
This looks like [9] and local (on stack) resulting in stack corruption.
Forum: Coders. C/C++ 16 July 2017, 20:16
Replies: 28
Views: 1,963
Posted By a/b
*ptr=((char)((STRPTR*)clparams[0])[i][0]);...

*ptr=((char)((STRPTR*)clparams[0])[i][0]); /*<<<<<*/
printf("LEN PTR==%ld\n",strlen(ptr));
...
printf("1st char= %c\n",((char)((STRPTR*)clparams[0])[i][0])); /*<<<<<<*/

That's not how...
Forum: Coders. Releases 10 July 2017, 05:26
Replies: 57
Views: 17,479
Posted By a/b
Scroll up, 3rd post on this page by BSzili.

Scroll up, 3rd post on this page by BSzili.
Forum: Coders. C/C++ 09 July 2017, 05:32
Replies: 262
Views: 12,102
Posted By a/b
Try this (if the compiler doesn't support concat...

Try this (if the compiler doesn't support concat when macro parameters are expanded at the same time):

#ifdef CURL_ISOCPP
#define CFINIT2(x,y) x ## y
#define CFINIT(name) CFINIT2(CURLFORM_,name)...
Forum: Coders. System 08 July 2017, 00:57
Replies: 33
Views: 5,005
Posted By a/b
General c/c++ suggestions: char *wintitle,...

General c/c++ suggestions:

char *wintitle, bd[3], ac[3], bl[3], wb[3], gz[3], zo[3];
strcpy(ac, "/ac");
strcpy(bl, "/bl");
strcpy(wb, "/wb");
strcpy(gz, "/gz");
strcpy(zo, "/zo");
...
Forum: Coders. C/C++ 06 July 2017, 20:42
Replies: 28
Views: 1,963
Posted By a/b
Yeah, this is part of my ancient (don't ask why...

Yeah, this is part of my ancient (don't ask why or how, it works for me :) ) digiclock code. I can't post the entire source code because it's using round corners and I don't have a few billion...
Forum: Coders. C/C++ 06 July 2017, 20:18
Replies: 28
Views: 1,963
Posted By a/b
Try this: #include <stdio.h> #include...

Try this:

#include <stdio.h>
#include <dos/dos.h>
#include <dos/dosextens.h>
#include <proto/dos.h>

int main()
{
struct RDArgs* Args;
Forum: Coders. C/C++ 06 July 2017, 14:07
Replies: 28
Views: 1,963
Posted By a/b
p_args is an array of pointers, you take the...

p_args is an array of pointers, you take the first one (=> p_file).
That first pointer points to another array of (string) pointers, one for each argument you have supplied on command line.
So now...
Forum: Coders. Asm / Hardware 05 July 2017, 12:08
Replies: 13
Views: 1,617
Posted By a/b
I'm using ASM-One 1.20 KS1.3 and KS2.0 on a...

I'm using ASM-One 1.20 KS1.3 and KS2.0 on a floppy with my WinUAE A500 config. It requires:
- reqtool.library, asl.library in LIBS:
- (optional) REGSDATA and ASM-One.pref in S:

Long term, you...
Forum: Coders. C/C++ 04 July 2017, 14:46
Replies: 28
Views: 1,963
Posted By a/b
OK, managed to dig out c code as well. Don't...

OK, managed to dig out c code as well. Don't guarantee it works, it's just some test stuff (I could only find number/string/bool parameters in my 'serious' code).


STRPTR template = "FILES/M";...
Forum: Coders. C/C++ 04 July 2017, 14:18
Replies: 28
Views: 1,963
Posted By a/b
Part of my ancient code for argument parsing, asm...

Part of my ancient code for argument parsing, asm but should be clear enough (hopefully..):

move.l #ArgTemplate,d1
move.l #ArgArray,d2
moveq #0,d3
jsr _LVOReadArgs(a6) ; dos
...
...
Forum: Coders. Asm / Hardware 01 July 2017, 23:07
Replies: 87
Views: 8,037
Posted By a/b
Hmm, doesn't it use the default directory? You...

Hmm, doesn't it use the default directory? You can set that by pressing ramiga-[. Then if you don't use INCDIR it should look for includes in that directory.
You can also use V (command line) to set...
Forum: Coders. Asm / Hardware 01 July 2017, 22:10
Replies: 87
Views: 8,037
Posted By a/b
Ah, damn... Yeah, I missed that somehow. After...

Ah, damn... Yeah, I missed that somehow. After several reinstalls of windoze, drivers and other crap my eyes are bloodshot and my brain cells are too busy commiting suicide to pay attention to...
Forum: Coders. Asm / Hardware 01 July 2017, 20:15
Replies: 87
Views: 8,037
Posted By a/b
My asm-one code compiles fine in asm-pro 1.17: ...

My asm-one code compiles fine in asm-pro 1.17:

INCDIR "Work:Developer/Include/"
INCLUDE "intuition/intuitionbase.i"
INCLUDE "intuition/screens.i"


Just use INCDIR to point where you have...
Forum: Coders. Asm / Hardware 30 June 2017, 10:29
Replies: 87
Views: 8,037
Posted By a/b
Having started my journey in monitor49152 on C64,...

Having started my journey in monitor49152 on C64, there is no better place than home, I mean asm-one ;P.
I find its IDE so beneficial to my coding style&habbits and what I'm doing that it surpases...
Forum: Coders. Asm / Hardware 30 June 2017, 10:08
Replies: 18
Views: 1,673
Posted By a/b
This is how I always understood 68k clock timings...

This is how I always understood 68k clock timings (maybe I'm wrong but it made sense to me when I was learing about this stuff and it stick in my memory)...
You could say that it takes 1 minute to...
Forum: Coders. Asm / Hardware 22 June 2017, 17:02
Replies: 5
Views: 1,003
Posted By a/b
I meant: .palette ; subq.l #6,a3 ; ...

I meant:

.palette
; subq.l #6,a3
; move.w (a3)+,a0
; move.w (a3)+,a1
; move.w (a3)+,a2
move.w (-6,a3),a0
move.w (-4,a3),a1
move.w (-2,a3),a2
Forum: Coders. Asm / Hardware 22 June 2017, 08:21
Replies: 5
Views: 1,003
Posted By a/b
I'm more into 000/040... Anyway, three minor...

I'm more into 000/040...
Anyway, three minor things after taking a quick look at the code and 020 tables:
- lea (ham8.colorTable.w,pc,d6.w*8),a3 is out of 8-bit range
- and.b #$fc,dx as fast as...
Forum: Coders. Asm / Hardware 16 June 2017, 09:16
Replies: 9
Views: 813
Posted By a/b
Ah, my bad. OK, based on your numbers you'd need...

Ah, my bad. OK, based on your numbers you'd need additional ~36K for masks. I guess that's the price of speed. And regardless of how you execute them, setting up 32 or 160 blits is a big difference...
Forum: Coders. Asm / Hardware 15 June 2017, 21:45
Replies: 9
Views: 813
Posted By a/b
It's exactly the same amount of memory, only...

It's exactly the same amount of memory, only differently organized. Just in case, to make sure we are on the same (bit)plane :):

- rawnorm/non-interleaved
000000 ; bp0
000000
000000
111111 ;...
Forum: Coders. C/C++ 15 June 2017, 20:28
Replies: 9
Views: 864
Posted By a/b
When you are writing multi-platform software you...

When you are writing multi-platform software you should generally be careful when using built-in types like int. Int can be 16, 32, or 64 bit depending on platform and OS. Use int16_t, int32_t,...
Forum: Coders. Asm / Hardware 15 June 2017, 15:04
Replies: 9
Views: 813
Posted By a/b
As Toni noted, the key is to reduce the number of...

As Toni noted, the key is to reduce the number of blits as the overhead is substantial.
I was in a similar situation a couple of months ago. I needed copper for sprite multiplexing, and had to turn...
Forum: Coders. Asm / Hardware 13 June 2017, 06:36
Replies: 2
Views: 545
Posted By a/b
OK, not sure how much will this help but...

OK, not sure how much will this help but anyway...
In that demo archive I can only see one source, DBPro player, which requires AHI and does all kind of stuff you wouldn't expect from a player...
Forum: Coders. Asm / Hardware 09 June 2017, 21:06
Replies: 4
Views: 819
Posted By a/b
Yeah, PC relative modes are slower on 040 (slower...

Yeah, PC relative modes are slower on 040 (slower EA calc stage). Assuming extra code size due to absolute EAs won't screw up the cache.

Here are some speed test results I did on my A4000/040 long...
Forum: Coders. Asm / Hardware 07 June 2017, 19:42
Replies: 15
Views: 1,607
Posted By a/b
Lots of interesting info on missing sync words....

Lots of interesting info on missing sync words. I'll have to add a few TODOs to my sources in case if/when I get back to them some day ;p.

Anyway, just thinking what I would do...
If there's no...
Forum: Coders. Asm / Hardware 05 June 2017, 12:58
Replies: 15
Views: 1,607
Posted By a/b
Checking my 20+ years old stuff... I was...

Checking my 20+ years old stuff...
I was searching for a sync word after each sector, don't remember whether to play it safe or it simply didn't work in some cases without it. But the common sense...
Forum: support.WinUAE 02 June 2017, 20:52
Replies: 9
Views: 615
Posted By a/b
My solution for annoying windos crap on any pc i...

My solution for annoying windos crap on any pc i owned (basically, nuke it from the orbit):

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard...
Forum: Coders. Asm / Hardware 29 May 2017, 14:53
Replies: 66
Views: 4,459
Posted By a/b
Why not? :D ...

Why not? :D
https://www.youtube.com/watch?v=6pX3OcPAHR8
Showing results 1 to 40 of 64

 
Forum Jump

All times are GMT +2. The time now is 03:41.


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