English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 543
Search took 0.05 seconds.
Search: Posts Made By: alkis
Forum: News 03 July 2020, 14:38
Replies: 29
Views: 1,585
Posted By alkis
Oh, missed that. Thanks Ross!

Oh, missed that. Thanks Ross!
Forum: News 03 July 2020, 14:32
Replies: 29
Views: 1,585
Posted By alkis
Thanks for your work! Umm, usage...

Thanks for your work!



Umm, usage example please?
Forum: Coders. Asm / Hardware 05 June 2020, 13:39
Replies: 8
Views: 530
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, 09:28
Replies: 8
Views: 530
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, 00:08
Replies: 21
Views: 1,149
Posted By alkis
Oops. Yeah, fixed in this one. Sorry.

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

Great!



Yeah, I like this. :)

You can
prompt "%P >"
if you don't like it.
Forum: Coders. C/C++ 04 June 2020, 01:08
Replies: 21
Views: 1,149
Posted By alkis
Can you give this zshell a try. I think I've...

Can you give this zshell a try. I think I've patched the issue.

Source code included.
I use : vasmm68k_mot -nosym -kick1hunks -Fhunkexe -o zshell ZShell.s
to assemble it.
Forum: Coders. C/C++ 03 June 2020, 22:39
Replies: 21
Views: 1,149
Posted By alkis
Absolute and relative path calling the exe...

Absolute and relative path calling the exe doesn't find the datafile, unless you place the datafile in the current directory. (Tested)

I guess that behavior confirms my original interpretation.
Forum: Coders. C/C++ 03 June 2020, 15:52
Replies: 21
Views: 1,149
Posted By alkis
ZShell does: ...

ZShell does:


lea pr_CurrentDir(a3),a3 (A3)=ptr to current dir
move.l (a3),d3 d3=current dir at beginning
move.l d3,d4 d4=PROGDIR:
...
...
...
cmp.w #36,kickver(a5)
Forum: Coders. Asm / Hardware 02 June 2020, 23:44
Replies: 13
Views: 798
Posted By alkis
This looks helpful...

This looks helpful http://web.archive.org/web/20041217062332/http://home.planet.nl/~MONSTROUS/

Select "Car physics" from the menu on top-left.
Forum: Coders. C/C++ 01 June 2020, 22:12
Replies: 21
Views: 1,149
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: 642
Posted By alkis
Wouldn't "-Idir1:,dir2" work?

Wouldn't "-Idir1:,dir2" work?
Forum: support.WinUAE 15 May 2020, 18:17
Replies: 5
Views: 520
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: 808
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: 808
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: 808
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: 770
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: 770
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: 770
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: 1,124
Posted By alkis
Yeah, that makes more sense.

Yeah, that makes more sense.
Forum: Coders. General 28 April 2020, 19:51
Replies: 17
Views: 1,124
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,473
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,473
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: 2,079
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: 822
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: 822
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: 822
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: 155,917
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,814
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,814
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,814
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: 1,040
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,779
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,779
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,779
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,452
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,452
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,452
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: 155,917
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: 155,917
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;
}
Showing results 1 to 40 of 543

 
Forum Jump

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


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