English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 508
Search took 0.04 seconds.
Search: Posts Made By: alkis
Forum: Coders. System 20 January 2020, 03:25
Replies: 14
Views: 548
Posted By alkis
I thought it was obvious that this "source code"...

I thought it was obvious that this "source code" comes from gcc compiling the C source I linked. :) (Except for the first init part)

PS: https://franke.ms/cex/z/I0smeH
Forum: Coders. System 19 January 2020, 22:18
Replies: 14
Views: 548
Posted By alkis
incdir ...

incdir "/opt/amiga/gcc6/m68k-amigaos/ndk-include"
include dos/dosextens.i
include lvo/exec_lib.i
include lvo/dos_lib.i


CALL MACRO
jsr _LVO\1(a6)
ENDM
Forum: Coders. System 17 January 2020, 23:20
Replies: 14
Views: 548
Posted By alkis
Funny, I was searching old usenet yesterday for...

Funny, I was searching old usenet yesterday for something like that.

I came across this one https://github.com/alexalkis/sillychess/commit/c8b0c85b30cd53e037e9152af603ff9356ac54dd

It's in C,...
Forum: Coders. C/C++ 17 January 2020, 19:26
Replies: 1,219
Views: 140,184
Posted By alkis
Yes, mcrt=nix13 if for kickstart 1.3. By default...

Yes, mcrt=nix13 if for kickstart 1.3. By default is for 68000
You can further specify cpu with -m68020 -m68030 etc
Forum: Coders. C/C++ 17 January 2020, 16:58
Replies: 1,219
Views: 140,184
Posted By alkis
#include <stdio.h> int main(int argc, char...

#include <stdio.h>

int main(int argc, char *argv[])
{
for(int i=0; i<argc; ++i)
printf("Arg #%d -> \"%s\"\n", i, argv[i]);
return 0;
}
Forum: Coders. C/C++ 03 January 2020, 20:19
Replies: 1,219
Views: 140,184
Posted By alkis
Doesn't need any flags. m68k-amigaos-gcc...

Doesn't need any flags.


m68k-amigaos-gcc -o foo main.s
main.s: Assembler messages:
main.s: Error: invalid operands (*UND* and .text sections) for `-' when setting `msg_length'
alex[1]@debxvm...
Forum: Coders. C/C++ 03 January 2020, 20:16
Replies: 1,219
Views: 140,184
Posted By alkis
Umm, argument n is n-1 as C/C++ is zero indexed.

Umm, argument n is n-1 as C/C++ is zero indexed.
Forum: Coders. C/C++ 31 December 2019, 17:16
Replies: 10
Views: 492
Posted By alkis
try adding -s on release builds to have it...

try adding -s on release builds to have it stripped
Forum: Coders. Asm / Hardware 31 December 2019, 17:13
Replies: 9
Views: 585
Posted By alkis
There is an example of cloning the screen here ...

There is an example of cloning the screen here
http://amigadev.elowar.com/read/ADCD_2.1/Libraries_Manual_guide/node05B2.html
Forum: Coders. C/C++ 18 December 2019, 21:58
Replies: 13
Views: 785
Posted By alkis
It's on stack (variable) on gcc-6.5 ...

It's on stack (variable) on gcc-6.5
https://franke.ms/cex/z/A1khyA

On gcc-2.9.5 it's on data segment.
Forum: Coders. Asm / Hardware 02 December 2019, 22:28
Replies: 13
Views: 929
Posted By alkis
I think if you include this ...

I think if you include this
https://github.com/optixx/amiga-crossdev/blob/master/docs/howtocode/source/include/iconstartup.i
in ministartup.s you should be fine.
Forum: Coders. General 29 November 2019, 15:01
Replies: 9
Views: 544
Posted By alkis
Nope, it's...

Nope, it's http://eab.abime.net/showpost.php?p=1360471&postcount=8
Forum: Coders. General 29 November 2019, 14:50
Replies: 9
Views: 544
Posted By alkis
Here is my CMakeLists.txt for a small project...

Here is my CMakeLists.txt for a small project that mixes gcc and asm which assembles with vasm


cmake_minimum_required(VERSION 3.13)
project(make C ASM)

set(CMAKE_C_FLAGS_MINSIZEREL "-Os")
...
Forum: Coders. General 22 November 2019, 19:02
Replies: 14
Views: 1,058
Posted By alkis
totally off-topic, but Ark 17.12.3 displays the...

totally off-topic, but Ark 17.12.3 displays the correct timestamps :) (kubuntu 18.04.3)
Forum: Coders. General 22 November 2019, 00:39
Replies: 14
Views: 1,058
Posted By alkis
You are welcome. Both files have modification...

You are welcome. Both files have modification date in 2019.



unzip -v system.zip
Archive: system.zip
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ...
Forum: Coders. General 21 November 2019, 20:38
Replies: 14
Views: 1,058
Posted By alkis
I have a routine, which relies on ***** ...

I have a routine, which relies on

***** SYSTEM0 execute command from disk. From Sozobon C distribution.
* Copyright © 1988 by Ralph Babel.
*
* This piece of code may be used as part of any...
Forum: request.UAE Wishlist 05 October 2019, 21:39
Replies: 1
Views: 2,725
Posted By alkis
Don't know if you've solved this, but the...

Don't know if you've solved this, but the solution is to disable "Mouse integration" in the Input menu of virtualbox of your vm.

(right control gives back mouse to host OS)
Forum: Coders. System 28 July 2019, 19:16
Replies: 14
Views: 1,795
Posted By alkis
Doesn't freeze on me. I assembled with vasm and...

Doesn't freeze on me. I assembled with vasm and run it from cli. Works as designed, I think :)
So, try making an executable and run it from cli.

When you call OS functions, a0-a1/d0-d1 are...
Forum: Coders. Releases 09 July 2019, 02:42
Replies: 95
Views: 26,064
Posted By alkis
You are welcome. I am glad it worked! :)

You are welcome. I am glad it worked! :)
Forum: Coders. Releases 08 July 2019, 21:14
Replies: 95
Views: 26,064
Posted By alkis
Don't have ptplayer.h but I'd assume that...

Don't have ptplayer.h but I'd assume that mt_Enable is declared there.

Try adding __far keyword right after type and before the name (mt_Enable)
Forum: support.FS-UAE 07 July 2019, 07:09
Replies: 19
Views: 4,171
Posted By alkis
Indeed that was the problem. After switching to...

Indeed that was the problem.
After switching to fs-uae-3.0 branch, it built correctly. It took 45 minutes to compile :) (on pi 3, single thread make invocation)

Thanks!
Forum: support.FS-UAE 06 July 2019, 19:13
Replies: 19
Views: 4,171
Posted By alkis
Compilation, on rp3, breaks at: make make ...

Compilation, on rp3, breaks at:

make
make all-recursive
make[1]: Entering directory '/home/pi/t/fs-uae'
make[2]: Entering directory '/home/pi/t/fs-uae'
depbase=`echo src/drawing.o | sed...
Forum: Coders. C/C++ 31 May 2019, 21:45
Replies: 1,219
Views: 140,184
Posted By alkis
grep -R _mbstate_t /opt/amiga/ (or wherever you...

grep -R _mbstate_t /opt/amiga/ (or wherever you installed the compiler) shows up a few places.

wchar.h looks most promising. Maybe try #include <wchar.h> prior to stdlib.h?
Forum: Coders. Asm / Hardware 08 May 2019, 19:59
Replies: 53
Views: 4,377
Posted By alkis
Thank you very much for the explanation

Thank you very much for the explanation
Forum: Coders. Asm / Hardware 08 May 2019, 18:20
Replies: 53
Views: 4,377
Posted By alkis
Cool! But what's the meaning of 32 'global area'?...

Cool! But what's the meaning of 32 'global area'? And is it bytes or long-words?
Forum: Coders. C/C++ 04 May 2019, 19:26
Replies: 1,219
Views: 140,184
Posted By alkis
¨ Your toolchain needs update. With a version...

¨
Your toolchain needs update. With a version git-pulled/make update/make on 2/5, I get a running executable on (emulated) A1000.

Displays "Statefile parameter missing." when run.
Forum: Coders. C/C++ 02 May 2019, 10:49
Replies: 17
Views: 1,734
Posted By alkis
Ah, that makes sense.

Ah, that makes sense.
Forum: Coders. C/C++ 02 May 2019, 00:17
Replies: 17
Views: 1,734
Posted By alkis
kind of big, huh? malloc is pulled in?

kind of big, huh? malloc is pulled in?
Forum: Coders. C/C++ 01 May 2019, 21:01
Replies: 17
Views: 1,734
Posted By alkis
whats the byte size of the executable on that...

whats the byte size of the executable on that bebbo?
Forum: Coders. Releases 30 April 2019, 02:25
Replies: 9
Views: 1,864
Posted By alkis
I love how this is so self-contained build-wise. ...

I love how this is so self-contained build-wise.

Thanks a million!
Forum: Coders. C/C++ 22 April 2019, 02:34
Replies: 23
Views: 6,437
Posted By alkis
Expanding my previous answer...This seems to...

Expanding my previous answer...This seems to solve it.


#ifndef LEAN
#include <clib/dos_protos.h>
#include <clib/exec_protos.h>
#define __chip
#else
#include <proto/exec.h>
#include...
Forum: Coders. C/C++ 14 April 2019, 12:29
Replies: 48
Views: 7,976
Posted By alkis
Here is a little experiment in python ...

Here is a little experiment in python
https://drive.google.com/file/d/17gRHKV7_oiYsWDVSt0kQSYd5TXurBMgE/view?usp=sharing

Get it and from within gdb, type 'source al.py'
Now when you debug and...
Forum: Coders. C/C++ 07 April 2019, 05:04
Replies: 17
Views: 1,734
Posted By alkis
Nope. The compiler did constant folding. It's a...

Nope. The compiler did constant folding. It's a mess. If you need to play with floats/doubles use the standard C library :)
Forum: Coders. C/C++ 07 April 2019, 03:14
Replies: 17
Views: 1,734
Posted By alkis
What do you mean "handle"? My sample "handles"...

What do you mean "handle"? My sample "handles" floats and with no extra
amiga libraries (gcc integrated support). I've included a line that does float multiplication.
It just can't print them,...
Forum: Coders. C/C++ 06 April 2019, 19:54
Replies: 17
Views: 1,734
Posted By alkis
I don't know if it's possible opening dos library...

I don't know if it's possible opening dos library with required version of 0 to ever be able to fail. (Maybe when you don't have any memory left)

If you fail to open it though, you have (at least)...
Forum: support.FS-UAE 30 March 2019, 17:24
Replies: 7
Views: 2,289
Posted By alkis
I tried fs-uae in mint19.1. Got segmentation...

I tried fs-uae in mint19.1. Got segmentation fault. (nothing complaining about Qt though)
I removed the package, got the source, compiled & run. Segmentation fault again (still not Qt related).
...
Forum: Coders. C/C++ 22 March 2019, 12:42
Replies: 7
Views: 1,174
Posted By alkis
It is executable. You can do icon.library...

It is executable. You can do
icon.library LOADWB
icon.library DELAY
icon.library ENDCLI
Forum: Coders. C/C++ 22 March 2019, 01:20
Replies: 7
Views: 1,174
Posted By alkis
Nice. Never seen the concept of library working...

Nice. Never seen the concept of library working as an executable as well. Neat.
Forum: Coders. C/C++ 21 March 2019, 19:28
Replies: 7
Views: 1,174
Posted By alkis
Indeed, having icon.library in libs: allows GoWB...

Indeed, having icon.library in libs: allows GoWB to work in a500/a1000.

Kind of defeats the purpose to have a disk freely distributable though if you are gonna include Commodore's code. :)
...
Forum: Coders. C/C++ 21 March 2019, 16:15
Replies: 7
Views: 1,174
Posted By alkis
loadwb replacement crashes on OS<2.0

Hello all,

I got this http://aminet.net/package/util/sys/GoWB and it works on emulated a500+, a1200 but not on A1000/A500.

Anyone can spot any issue(s)?


#include <proto/exec.h>
#include...
Showing results 1 to 40 of 508

 
Forum Jump

All times are GMT +2. The time now is 04:28.


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