English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 577
Search took 0.05 seconds.
Search: Posts Made By: alkis
Forum: Coders. C/C++ 31 January 2021, 19:32
Replies: 8
Views: 399
Posted By alkis
It is working as designed. You should have the...

It is working as designed. You should have the __stdargs in front of your main.

I tried the same on linux, has the same behavior.


alex[0]@omen 13$ cat >args.c
#include <stdio.h>

int...
Forum: Coders. C/C++ 31 January 2021, 15:01
Replies: 8
Views: 399
Posted By alkis
Can you provide a minimum compilable source code...

Can you provide a minimum compilable source code that exhibits the problem?
Forum: Coders. C/C++ 31 January 2021, 13:47
Replies: 8
Views: 399
Posted By alkis
There is no problem with argc. This as...

There is no problem with argc.

This as args.c


#include <stdio.h>

int main(int argc, char *argv[])
{
printf("Argc = %d\n", argc);
Forum: Coders. General 27 January 2021, 15:50
Replies: 76
Views: 4,982
Posted By alkis
+1 I am leaning towards trolling, but yeah...

+1

I am leaning towards trolling, but yeah it can be both.
Forum: Coders. General 24 January 2021, 23:27
Replies: 76
Views: 4,982
Posted By alkis
Maybe you want to RTFM? ...

Maybe you want to RTFM?
https://issuu.com/ivanguidomartucci/docs/amiga-basic---ebook-eng page 96
Forum: Coders. General 24 January 2021, 21:33
Replies: 76
Views: 4,982
Posted By alkis
Stop trolling.

Stop trolling.
Forum: support.FS-UAE 24 January 2021, 13:09
Replies: 34
Views: 13,203
Posted By alkis
Yeap, works! Thanks!

Yeap, works! Thanks!
Forum: support.FS-UAE 24 January 2021, 11:50
Replies: 34
Views: 13,203
Posted By alkis
Thanks for your work! I tried the current...

Thanks for your work!

I tried the current master from git (kubuntu 20.04). Compiled ok. Core dumped when starting.
I had to modify fsemu_refable_ref_refable to just return on parameter being...
Forum: Coders. C/C++ 11 December 2020, 10:46
Replies: 28
Views: 2,274
Posted By alkis
This should do it char foo[sizeof(struct...

This should do it


char foo[sizeof(struct StandardPacket)+4]; // 68 + 4 = 72 bytes
struct StandardPacket *_con_standard_packet = (struct StandardPacket *)((ULONG) &foo[4] & ~3);...
Forum: Coders. C/C++ 09 December 2020, 22:50
Replies: 28
Views: 2,274
Posted By alkis
could you try __aligned struct StandardPacket...

could you try
__aligned struct StandardPacket con_standard_packet;

a lot of DOS things need to be aligned on 4 byte boundaries cause of BCPL pointers.
Forum: Coders. C/C++ 07 December 2020, 08:19
Replies: 14
Views: 1,425
Posted By alkis
Could this be a false positive on the reporting...

Could this be a false positive on the reporting tools?

I compiled and run your code. Avail reports the same memory free before and after executing your code. No leak.

PS: On standard emulated...
Forum: support.Apps 01 December 2020, 02:18
Replies: 9
Views: 899
Posted By alkis
Umm, actually the linux binary is ~700k (you...

Umm, actually the linux binary is ~700k (you have to compile with -static)
Here you can read more https://stackoverflow.com/a/33630488/8390560
Forum: Coders. C/C++ 01 November 2020, 21:43
Replies: 10
Views: 954
Posted By alkis
I don't know if you are already aware, but Deluxe...

I don't know if you are already aware, but Deluxe Paint version I released source code.
Maybe you'd pick an idea or two from there....
Forum: Coders. C/C++ 24 October 2020, 17:50
Replies: 21
Views: 1,686
Posted By alkis
Maybe now with one-liner? :P void...

Maybe now with one-liner? :P

void mousewait() {while(*(volatile unsigned char *) 0xbfe001 & (1<<6));}

http://franke.ms/cex/z/cvoPbE
Forum: Coders. C/C++ 22 October 2020, 15:16
Replies: 14
Views: 1,059
Posted By alkis
You can fix that with: #ifdef __clang__ ...

You can fix that with:

#ifdef __clang__
#include <clib/exec_protos.h>
#include <clib/dos_protos.h>
#include <clib/ptreplay_protos.h>
#else
#include <proto/exec.h>
#include <proto/dos.h>...
Forum: Coders. C/C++ 22 October 2020, 13:43
Replies: 14
Views: 1,059
Posted By alkis
Ok, its the stubs for the library. I didn't used...

Ok, its the stubs for the library. I didn't used that at all when compiling the sample. (that's what the inlines are for, so you dont need stubs)
Forum: Coders. C/C++ 22 October 2020, 13:38
Replies: 14
Views: 1,059
Posted By alkis
Umm, looking at you cmakelists.txt why...

Umm, looking at you cmakelists.txt

why set(EXTRALIBS_LINK_FLAGS "-lptreplay")?
dynamic libraries don't need that. Only static .lib files. Am I reading this wrong?
Forum: Coders. C/C++ 22 October 2020, 12:59
Replies: 14
Views: 1,059
Posted By alkis
Your sample plays fine in emulated A1200 compiled...

Your sample plays fine in emulated A1200 compiled with gcc for me.

What I did:
fd2sfd Include/fd/ptreplay_lib.fd Include/clib/ptreplay_protos.h -o ptreplay.sfd

mkdir proto
mkdir inline
sfdc...
Forum: Coders. System 01 October 2020, 01:59
Replies: 11
Views: 1,393
Posted By alkis
OpenDevice returns a byte (D0.b). I think for C...

OpenDevice returns a byte (D0.b). I think for C the value zero counts as FALSE and anything else counts as TRUE. If you NOT that (! operator) you reverse it.

Basically, if OP can remove the !...
Forum: Coders. System 30 September 2020, 21:46
Replies: 11
Views: 1,393
Posted By alkis
Wait. Doesn't the NOT(!) reverse that?

Wait. Doesn't the NOT(!) reverse that?
Forum: Coders. Tutorials 08 September 2020, 12:18
Replies: 8
Views: 3,300
Posted By alkis
/50 can be achieved by /100 (dropping last byte)...

/50 can be achieved by /100 (dropping last byte) and add the number to itself (so /100*2)
Forum: Coders. Asm / Hardware 26 August 2020, 20:54
Replies: 5
Views: 924
Posted By alkis
Also interesting is that it has roots to the...

Also interesting is that it has roots to the Amiga

https://www.cygnus-software.com/profile/companyprofile.htm
Forum: Coders. Asm / Hardware 26 August 2020, 11:33
Replies: 5
Views: 924
Posted By alkis
Relevant reference...

Relevant reference https://randomascii.wordpress.com/2011/08/13/faster-fractals-through-algebra/
Forum: Coders. C/C++ 21 August 2020, 22:29
Replies: 3
Views: 1,153
Posted By alkis
I think you need to link with math libraries. sc...

I think you need to link with math libraries. sc math=standard link foo.c (or choose math standard in scopts)
Forum: Coders. C/C++ 16 August 2020, 03:39
Replies: 5
Views: 1,096
Posted By alkis
Ok, this is a working draft Very very lightly...

Ok, this is a working draft
Very very lightly tested, seems to work. Also fixed a bug or two on the initial C code that I found.


#include <stdio.h>
#include <stdint.h>


uint32_t...
Forum: Coders. C/C++ 16 August 2020, 03:35
Replies: 5
Views: 1,096
Posted By alkis
Thanks, but the code has to run on linux.

Thanks, but the code has to run on linux.
Forum: Coders. C/C++ 15 August 2020, 20:28
Replies: 5
Views: 1,096
Posted By alkis
If there is no any already used/tested function...

If there is no any already used/tested function lying around in some folk's hard drive, I could give it a shot. :)
Forum: Coders. C/C++ 15 August 2020, 19:12
Replies: 5
Views: 1,096
Posted By alkis
Wanted: C source for converting gcc (linux) float to FFP

I've looked through the internets and I only managed to find the reverse (get ieee from ffp)
I need to get ffp from ieee (I think).

Context: I've cross-compiled some ACE Basic programs from...
Forum: Coders. C/C++ 06 August 2020, 12:46
Replies: 8
Views: 1,121
Posted By alkis
OP said he tried using fopen, fread, fwrite. (and...

OP said he tried using fopen, fread, fwrite. (and got linking errors on _open etc)

I think those are standard lib as of C89.

Docent's approach sounds more logical to me.
Forum: Coders. System 28 July 2020, 09:55
Replies: 20
Views: 3,521
Posted By alkis
Hmm, I'd save d1 prior to allocvec, restore...

Hmm, I'd save d1 prior to allocvec, restore immediately after and on fail call availmem and examine d0
Forum: Coders. C/C++ 26 July 2020, 20:59
Replies: 3
Views: 1,028
Posted By alkis
If I had to guess, you don't have the prototype...

If I had to guess, you don't have the prototype in scope and the compiler thinks that function returns int?
Forum: Coders. Asm / Hardware 15 July 2020, 10:52
Replies: 5
Views: 879
Posted By alkis
works if you invoke vasm with -m68020 ...

works if you invoke vasm with -m68020

vasmm68k_mot -m68020 -Fhunk -o foo foo.asm
Forum: Coders. C/C++ 14 July 2020, 13:36
Replies: 9
Views: 1,183
Posted By alkis
You shouldn't call Exit(), see...

You shouldn't call Exit(), see http://amigadev.elowar.com/read/ADCD_2.1/Includes_and_Autodocs_3._guide/node015F.html

If the C compiler enviroment doesn't provide exit() then it is broken, as...
Forum: Coders. C/C++ 14 July 2020, 05:13
Replies: 9
Views: 1,183
Posted By alkis
I think you are not supposed to call Exit() but...

I think you are not supposed to call Exit() but exit()
Forum: News 03 July 2020, 15:38
Replies: 37
Views: 5,354
Posted By alkis
Oh, missed that. Thanks Ross!

Oh, missed that. Thanks Ross!
Forum: News 03 July 2020, 15:32
Replies: 37
Views: 5,354
Posted By alkis
Thanks for your work! Umm, usage...

Thanks for your work!



Umm, usage example please?
Forum: Coders. Asm / Hardware 05 June 2020, 14:39
Replies: 8
Views: 813
Posted By alkis
Just uncompress this zip inside the inludes ...

Just uncompress this zip inside the inludes

if you want to use functions of exec, do
include lvo/exec_lib.i

for dos

include lvo/dos_lib.i

etc.
Forum: Coders. Asm / Hardware 05 June 2020, 10:28
Replies: 8
Views: 813
Posted By alkis
Probably you mean this (?)...

Probably you mean this (?) https://www.haage-partner.de/download/AmigaOS/NDK39.lha
Forum: Coders. C/C++ 05 June 2020, 01:08
Replies: 21
Views: 2,512
Posted By alkis
Oops. Yeah, fixed in this one. Sorry.

Oops. Yeah, fixed in this one. Sorry.
Forum: Coders. C/C++ 04 June 2020, 14:42
Replies: 21
Views: 2,512
Posted By alkis
Great! Yeah, I like this. :) You...

Great!



Yeah, I like this. :)

You can
prompt "%P >"
if you don't like it.
Showing results 1 to 40 of 577

 
Forum Jump

All times are GMT +2. The time now is 15:32.


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