English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 533
Search took 0.05 seconds.
Search: Posts Made By: alkis
Forum: Coders. C/C++ Yesterday, 22:12
Replies: 2
Views: 104
Posted By alkis
If you are targeting OS>=2.0 then the dynamic...

If you are targeting OS>=2.0 then the dynamic assign PROGDIR: would probably fit your needs.
http://www.amigareport.com/ar311/progdir.html
Forum: Coders. Asm / Hardware 21 May 2020, 06:05
Replies: 11
Views: 450
Posted By alkis
Wouldn't "-Idir1:,dir2" work?

Wouldn't "-Idir1:,dir2" work?
Forum: support.WinUAE 15 May 2020, 18:17
Replies: 5
Views: 367
Posted By alkis
whats wrong with the "end - pause" toggle?...

whats wrong with the "end - pause" toggle? :)
Forum: Coders. C/C++ 01 May 2020, 19:07
Replies: 9
Views: 589
Posted By alkis
I am not aware of standard C lib implementation...

I am not aware of standard C lib implementation on this one. I think you have to write your own. This might help https://stackoverflow.com/questions/51146959/key-value-pair-in-c?noredirect=1&lq=1
Forum: Coders. C/C++ 01 May 2020, 17:32
Replies: 9
Views: 589
Posted By alkis
What's the use case for that? What are you trying...

What's the use case for that? What are you trying to do?
Forum: Coders. C/C++ 01 May 2020, 17:31
Replies: 9
Views: 589
Posted By alkis
Also, if you use OS functions you lose C...

Also, if you use OS functions you lose C portability and you make your code amiga-specific.

For example, you could write a 'cat' command line application with the standard C libs. It would...
Forum: Coders. C/C++ 29 April 2020, 22:38
Replies: 7
Views: 526
Posted By alkis
Also, it's a good amiga practise to ALWAYS...

Also, it's a good amiga practise to ALWAYS CloseLibrary that you have opened with OpenLibrary.
Forum: Coders. C/C++ 29 April 2020, 22:37
Replies: 7
Views: 526
Posted By alkis
exit was misused, doesn't make any sense to use...

exit was misused, doesn't make any sense to use it inside the main() function. You probably saw the warning which you can solve with #include <stdlib.h>

CloseLibrary gives another warning and...
Forum: Coders. C/C++ 29 April 2020, 19:58
Replies: 7
Views: 526
Posted By alkis
Don't know about hisoftC but sas has the system's...

Don't know about hisoftC but sas has the system's library calls defined in proto/ folder in includes.

So, if you want to use Exec's OpenLibrary, CloseLibrary etc you
#include <proto/exec.h>

If...
Forum: Coders. General 28 April 2020, 21:19
Replies: 17
Views: 858
Posted By alkis
Yeah, that makes more sense.

Yeah, that makes more sense.
Forum: Coders. General 28 April 2020, 19:51
Replies: 17
Views: 858
Posted By alkis
$60,ExecBase should be: WORD ChkSum ;...

$60,ExecBase should be:


WORD ChkSum ; for all of the above (minus 2)


******* Interrupt Related ********************************************
LABEL IntVects
STRUCT IVTBE,IV_SIZE
...
Forum: Coders. Asm / Hardware 24 April 2020, 00:44
Replies: 18
Views: 1,349
Posted By alkis
can you try linking with this one instead? ...

can you try linking with this one instead?
https://github.com/kusma/amiga-dev/tree/master/targets/m68k-amigaos/ndk/linker_libs

That's from the official NDK
Forum: Coders. Asm / Hardware 24 April 2020, 00:38
Replies: 18
Views: 1,349
Posted By alkis
You don't have to return 0 in d0. ...

You don't have to return 0 in d0.

Amigashell interprets 0 in d0 as "all went well". Shows cmd failed with code 42 (that's from the top of my head, but something close to that) if you return with...
Forum: support.Apps 16 April 2020, 17:41
Replies: 23
Views: 1,893
Posted By alkis
Here is one in C. Works in >=1.2 Sets all...

Here is one in C. Works in >=1.2

Sets all colors to black, waits for either ctrl-c or to run it again to restore colors.
(i.e. 'run scrcol' goes black, and 'run scrcol' again goes back)

It...
Forum: Coders. Asm / Hardware 26 March 2020, 14:03
Replies: 10
Views: 796
Posted By alkis
Yeah, but they are used to move.w #0,$180 ...

Yeah, but they are used to

move.w #0,$180


and I'd assume that

CMOVE 0,$180
Forum: Coders. Asm / Hardware 26 March 2020, 11:44
Replies: 10
Views: 796
Posted By alkis
; Copper macros CMOVE macro ; value,...

; Copper macros
CMOVE macro ; value, register
dc.w \2,\1
endm

why not like that? (that was my question)
Forum: Coders. Asm / Hardware 26 March 2020, 09:29
Replies: 10
Views: 796
Posted By alkis
Obviously when you create a macro you are free to...

Obviously when you create a macro you are free to do it anyway you like, but is there a reason to deviate from standard motorola's order move #value,destination in CMOVE?

Just curious if it's a...
Forum: Coders. C/C++ 01 March 2020, 15:17
Replies: 1,232
Views: 152,826
Posted By alkis
I am trying to compile lua for A500 1.3. Exe...

I am trying to compile lua for A500 1.3.
Exe comes out fine, works on A1200. On A500 needs locale.library. What triggers the autoinit for locale.library? Does 1.3 have a locale.library? Any...
Forum: Coders. Asm / Hardware 27 February 2020, 01:21
Replies: 32
Views: 1,767
Posted By alkis
If you click on the compiler explorer link you'll...

If you click on the compiler explorer link you'll see the assembly that gcc-6.5.0 comes up with for the job. You can probably use it as a template for a macro with two arguments 1) sizeof struct 2)...
Forum: Coders. Asm / Hardware 26 February 2020, 18:05
Replies: 32
Views: 1,767
Posted By alkis
You can use __aligned to declare a struct...

You can use __aligned to declare a struct FileInfoBlock on the stack like
__aligned struct FileInfoBlock fib;
this works in gcc and SAS C.

https://franke.ms/cex/z/XR1NRA
hmm, gcc2.95 looks...
Forum: Coders. Asm / Hardware 26 February 2020, 08:53
Replies: 32
Views: 1,767
Posted By alkis
Lock() doesn't need a lock. It returns a lock. ...

Lock() doesn't need a lock. It returns a lock.

http://amigadev.elowar.com/read/ADCD_2.1/Includes_and_Autodocs_3._guide/node0186.html

You can use that returned lock without any further...
Forum: Coders. System 23 February 2020, 22:54
Replies: 9
Views: 857
Posted By alkis
Untested. ...

Untested.

https://groups.google.com/d/msg/comp.sys.amiga.programmer/eM8lsfkIHcs/PVXxvKyaDzoJ
Forum: Coders. C/C++ 13 February 2020, 13:09
Replies: 16
Views: 1,535
Posted By alkis
It works on beboo's gcc-6.5 ...

It works on beboo's gcc-6.5
https://franke.ms/cex/z/N4LiRl
Forum: Coders. C/C++ 13 February 2020, 13:04
Replies: 16
Views: 1,535
Posted By alkis
Indeed this is on linux.

Indeed this is on linux.
Forum: Coders. C/C++ 12 February 2020, 15:01
Replies: 16
Views: 1,535
Posted By alkis
CLion works for me with gcc. As an example...

CLion works for me with gcc.

As an example see https://github.com/alexalkis/a68k/blob/master/CMakeLists.txt
Forum: Coders. System 20 January 2020, 02:25
Replies: 14
Views: 1,267
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, 21:18
Replies: 14
Views: 1,267
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, 22:20
Replies: 14
Views: 1,267
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, 18:26
Replies: 1,232
Views: 152,826
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, 15:58
Replies: 1,232
Views: 152,826
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, 19:19
Replies: 1,232
Views: 152,826
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, 19:16
Replies: 1,232
Views: 152,826
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, 16:16
Replies: 10
Views: 1,174
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, 16:13
Replies: 9
Views: 715
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, 20:58
Replies: 13
Views: 1,474
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, 21:28
Replies: 13
Views: 1,023
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, 14:01
Replies: 9
Views: 775
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, 13:50
Replies: 9
Views: 775
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, 18:02
Replies: 14
Views: 1,143
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 21 November 2019, 23:39
Replies: 14
Views: 1,143
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
-------- ------ ...
Showing results 1 to 40 of 533

 
Forum Jump

All times are GMT +2. The time now is 17:07.


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