English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 565
Search took 0.05 seconds.
Search: Posts Made By: bebbo
Forum: Coders. C/C++ 02 December 2021, 12:51
Replies: 1,326
Views: 229,766
Posted By bebbo
done

done
Forum: Coders. C/C++ 27 November 2021, 19:18
Replies: 3
Views: 418
Posted By bebbo
AFAIK the meanings did not change. You...

AFAIK the meanings did not change.



You must not use __interrupt for the Amiga software interrupts. Why? Because __interrupt means the function uses rte to exit instead of rts.


__saveds...
Forum: Coders. C/C++ 27 November 2021, 18:44
Replies: 1,326
Views: 229,766
Posted By bebbo
I modified libnix to not use the AmigaOS...

I modified libnix to not use the AmigaOS SwapStack method...
... as for kick 1.3
Forum: Coders. C/C++ 21 November 2021, 11:10
Replies: 3
Views: 431
Posted By bebbo
the default inline calls for varargs to not...

the default inline calls for varargs to not support nesting.
=> add -DNO_INLINE_STDARG
e.g.


m68k-amigaos-gcc -noixemul -DNO_INLINE_STDARG -Os Buttons.c -o Buttons
Forum: Coders. Blitz Basic 19 November 2021, 09:32
Replies: 14
Views: 829
Posted By bebbo
there is no need for SQRT to find the closest. ...

there is no need for SQRT to find the closest.



And for small values can get more precision by using just one smul,
so discard too big values in advance(if the word overflows it's not...
Forum: Coders. Blitz Basic 18 November 2021, 15:54
Replies: 14
Views: 829
Posted By bebbo
sometimes it's good enough to consider min(dx +...

sometimes it's good enough to consider min(dx + dy)...
... i's not a perfect circle but it's quick^^
Forum: Coders. C/C++ 29 October 2021, 09:10
Replies: 1,326
Views: 229,766
Posted By bebbo
I have no idea if it's smart to hook into the...

I have no idea if it's smart to hook into the mathieee-stuff or not...
... it's an Amiga thing to provide these.


It would be also possible to provide these functions as builtins, which would...
Forum: Coders. C/C++ 28 October 2021, 21:37
Replies: 1,326
Views: 229,766
Posted By bebbo
yes, it is possible: use -ffast-math ...

yes, it is possible: use -ffast-math

https://franke.ms/cex/z/EEnfbE
Forum: Coders. C/C++ 26 October 2021, 15:13
Replies: 1,326
Views: 229,766
Posted By bebbo
There is a tutorial from Wei-ju Wu: Setting up...

There is a tutorial from Wei-ju Wu: Setting up gcc for Amiga cross development

=> https://www.youtube.com/watch?v=Kami9RCrLSA
Forum: Coders. System 20 October 2021, 17:50
Replies: 22
Views: 2,540
Posted By bebbo
a cli with 1 bitplane should scroll faster,...

a cli with 1 bitplane should scroll faster, shouldn' it?
Forum: Coders. C/C++ 17 October 2021, 16:47
Replies: 1,326
Views: 229,766
Posted By bebbo
something like int mulscale32(int u, int v)...

something like

int mulscale32(int u, int v) {
return ((double)u) * v / ((double)(1<<16) * (1<<16));
}

?
Forum: Coders. C/C++ 16 October 2021, 21:50
Replies: 1,326
Views: 229,766
Posted By bebbo
hehe - fun - that lib wasn't build for 68060. ...

hehe - fun - that lib wasn't build for 68060.
=> you need libs built for the 68060...
Forum: Coders. C/C++ 16 October 2021, 19:17
Replies: 1,326
Views: 229,766
Posted By bebbo
oh - the 68060 code is OK! Why? ...

oh - the 68060 code is OK! Why?





which means: you may use mulu.l/muls.l on a MC68060 but this will raise an exception and an emulation of the instruction gets invoked instead.


I would...
Forum: Coders. C/C++ 16 October 2021, 11:11
Replies: 1,326
Views: 229,766
Posted By bebbo
Oh, I see. with -m68060 the code is... insane^^...

Oh, I see. with -m68060 the code is... insane^^ that should be fixed in gcc...
Forum: Coders. C/C++ 15 October 2021, 18:17
Replies: 1,326
Views: 229,766
Posted By bebbo
sorry, but I don't see the reason for using such...

sorry, but I don't see the reason for using such inline assembly with gcc.
the NOASM functions aren't worse. With loop unrolling it should be even faster.


https://franke.ms/cex/z/aTjM31
Forum: Coders. C/C++ 08 October 2021, 17:02
Replies: 1,326
Views: 229,766
Posted By bebbo
it's now also fixed - as any other ctor/dtor...

it's now also fixed - as any other ctor/dtor should be working again
Forum: Coders. C/C++ 07 October 2021, 13:14
Replies: 1,326
Views: 229,766
Posted By bebbo
ah - oow - DTORs are handled via mystic .stab...

ah - oow - DTORs are handled via mystic .stab entries which are assumed to be in specific sections. Since I started to support sections per functions, these ended up in a separate section and were...
Forum: Coders. C/C++ 30 September 2021, 10:22
Replies: 1,326
Views: 229,766
Posted By bebbo
m68k-amigaos-ld -r -o outobj.o m68kobj.ogives the...

m68k-amigaos-ld -r -o outobj.o m68kobj.ogives the "bad value" error.

What is the fix for this because this is doing my head in! :guru

(I'm using cygwin fwiw)[/QUOTE]


-r is not supported
Forum: Coders. C/C++ 27 September 2021, 15:11
Replies: 1,326
Views: 229,766
Posted By bebbo
to use floating point registers you need to...

to use floating point registers you need to specify -m68881 or -m68040 or -m68060 or -m68080


the fast math flag lets the compiler make some assumptions which speed it up. A good explanation is...
Forum: Coders. C/C++ 27 September 2021, 10:30
Replies: 1,326
Views: 229,766
Posted By bebbo
yes sir, you have to. that's why I posted that...

yes sir, you have to. that's why I posted that info.

EDIT: the gain in combination with -Ofast or using -ffast-math is worth it.
Forum: Coders. C/C++ 20 September 2021, 10:47
Replies: 1,326
Views: 229,766
Posted By bebbo
just to inform you: I changed the ABI: with fpu...

just to inform you: I changed the ABI: with fpu fp values are now returned in fp0.
Forum: Coders. Asm / Hardware 15 September 2021, 16:16
Replies: 65
Views: 10,293
Posted By bebbo
https://community.centminmod.com/data/attachment-f...

https://community.centminmod.com/data/attachment-files/2019/11/8421_compression-test-compress-speed-vs-ratio-01.png

hm...
Forum: Coders. C/C++ 12 September 2021, 00:16
Replies: 11
Views: 1,419
Posted By bebbo
duh - that's a complicated command line... ...

duh - that's a complicated command line...


I'd fix includes


//#include <utils/dos/dos.h>

also remove duplicate includes... and use exit(0); instead of Exit(0); -- include <stdlib.h> for...
Forum: Coders. System 10 August 2021, 10:19
Replies: 25
Views: 4,792
Posted By bebbo
ok - I removed that semaphore again ^^ ...

ok - I removed that semaphore again ^^


btw: do you now if that freeing of the libraries memory is a leftover from old versions or should it be still there?
Forum: Coders. System 08 August 2021, 21:50
Replies: 25
Views: 4,792
Posted By bebbo
a leftover from - I don't remember... :-) ...

a leftover from - I don't remember... :-)


I put it once together from here and there (e.g. libnix library example) and tried to make it as simple as possible to be used with amiga-gcc.


Now...
Forum: Coders. System 04 August 2021, 23:54
Replies: 25
Views: 4,792
Posted By bebbo
Oh - it's an Eclipse project :-) this should...

Oh - it's an Eclipse project :-)

this should do it

m68k-amigaos-gcc -nostartfiles -o "example.library" alibrary.c myfx.c -Os

specify alibrary.c as the first file
Forum: Coders. System 04 August 2021, 16:21
Replies: 25
Views: 4,792
Posted By bebbo
If you are using amiga-gcc you might also check...

If you are using amiga-gcc you might also check https://github.com/bebbo/example.library
Forum: Coders. Asm / Hardware 03 August 2021, 11:31
Replies: 18
Views: 1,574
Posted By bebbo
a0 = $00000000 the sub.w a0,a0 uses a0.w...

a0 = $00000000


the sub.w a0,a0 uses a0.w sign extended
$ffff -> $ffffffff
$ffffffff - $ffffffff = $00000000


the word used in adda/suba is sign extended before a long add/sub is calculated
Forum: Coders. C/C++ 01 August 2021, 20:23
Replies: 22
Views: 4,378
Posted By bebbo
looks good. The most OS friendly way...

looks good.



The most OS friendly way to get a gadget event in empty listviews seems to be setting GTLV_Labels with a one entry list of an empty string.
Forum: Coders. C/C++ 01 August 2021, 16:44
Replies: 22
Views: 4,378
Posted By bebbo
hm: gad->Flags & GFLG_SELECTED does not...

hm:

gad->Flags & GFLG_SELECTED
does not work for you?


You could also call SetGadgetAttrsA with GFLG_SELECTED set...
Forum: Coders. C/C++ 31 July 2021, 16:35
Replies: 22
Views: 4,378
Posted By bebbo
try setting the GadgetType to 0 if the list is...

try setting the GadgetType to 0 if the list is empty, and restore the type once something is added.
Forum: Coders. C/C++ 30 July 2021, 19:21
Replies: 22
Views: 4,378
Posted By bebbo
forward this to the Kickstart developers

forward this to the Kickstart developers
Forum: Coders. Asm / Hardware 30 July 2021, 12:41
Replies: 15
Views: 2,321
Posted By bebbo
refering to Don Adams comment: you are...

refering to Don Adams comment:


you are counting y like 0, 1, 2
can't you count y as 0, 200, 400, ... ?



then would be no need for * 200
Forum: Coders. C/C++ 28 July 2021, 19:26
Replies: 22
Views: 4,378
Posted By bebbo
maybe someone is able to track the last selected...

maybe someone is able to track the last selected input gadget...
Forum: Coders. C/C++ 28 July 2021, 18:51
Replies: 22
Views: 4,378
Posted By bebbo
As usally - I know nothing - but maybe this...

As usally - I know nothing - but maybe this helps:


open the input.device
add a handler
that handler checks input events for IECLASS_ACTIVEWINDOW
signal your task or send a msg
...
Forum: Coders. Asm / Hardware 28 July 2021, 11:06
Replies: 15
Views: 2,321
Posted By bebbo
that's 44 cycles faster is lsl.w...

that's 44 cycles


faster is

lsl.w #3,d2 ; *8 6+6
move.w d2,d3 4
lsl.w #3,d3 ; *64 6+6
add.w d3,d2 ; *72 4
add.w d3,d2 ; *136 4
Forum: Coders. Asm / Hardware 28 July 2021, 08:46
Replies: 15
Views: 2,321
Posted By bebbo
the displacement must fit into 1 byte. Thus the...

the displacement must fit into 1 byte. Thus the code needs to be very close to the table.
used cycles: 4 + 14 = 18

the lea approach will work within a +-32k range
used cycles 8 + 4 + 14 = 26
...
Forum: Coders. C/C++ 23 July 2021, 12:59
Replies: 2
Views: 1,361
Posted By bebbo
use global variables for struct Library...

use global variables for

struct Library *WindowBase, *LayoutBase;
Forum: Coders. C/C++ 14 July 2021, 11:18
Replies: 1
Views: 1,371
Posted By bebbo
AFAIK: * the GTMN_AmigaKey is only used to...

AFAIK:
* the GTMN_AmigaKey is only used to inform the menu that there is a custom image.
* also set the MENU_IMAGE flag
* let ItemFill point to an own struct Image
Forum: Coders. C/C++ 30 June 2021, 13:26
Replies: 107
Views: 14,491
Posted By bebbo
some compilers like sc always refer to global...

some compilers like sc always refer to global variables for *bases.


Using macros, like gcc does, local variables can be used for *bases too. Maybe one can build something simliar for sc to...
Showing results 1 to 40 of 565

 
Forum Jump

All times are GMT +2. The time now is 20:11.


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