English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 549
Search took 0.05 seconds.
Search: Posts Made By: alkis
Forum: Coders. C/C++ 06 August 2020, 11:46
Replies: 8
Views: 374
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, 08:55
Replies: 16
Views: 723
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, 19:59
Replies: 3
Views: 379
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, 09:52
Replies: 5
Views: 545
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, 12:36
Replies: 9
Views: 515
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, 04:13
Replies: 9
Views: 515
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, 14:38
Replies: 32
Views: 2,996
Posted By alkis
Oh, missed that. Thanks Ross!

Oh, missed that. Thanks Ross!
Forum: News 03 July 2020, 14:32
Replies: 32
Views: 2,996
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: 636
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: 636
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,499
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,499
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,499
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,499
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,499
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: 890
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,499
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: 684
Posted By alkis
Wouldn't "-Idir1:,dir2" work?

Wouldn't "-Idir1:,dir2" work?
Forum: support.WinUAE 15 May 2020, 18:17
Replies: 5
Views: 581
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: 999
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: 999
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: 999
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: 978
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: 978
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: 978
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,235
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,235
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,529
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,529
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,174
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: 851
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: 851
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: 851
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,234
Views: 158,771
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,909
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,909
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,909
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,234
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: 2,011
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: 2,011
Posted By alkis
Indeed this is on linux.

Indeed this is on linux.
Showing results 1 to 40 of 549

 
Forum Jump

All times are GMT +2. The time now is 02:26.


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