English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 557
Search took 0.05 seconds.
Search: Posts Made By: alkis
Forum: Coders. Tutorials 08 September 2020, 11:18
Replies: 8
Views: 373
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, 19:54
Replies: 5
Views: 570
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, 10:33
Replies: 5
Views: 570
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, 21:29
Replies: 3
Views: 612
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, 02:39
Replies: 5
Views: 523
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, 02:35
Replies: 5
Views: 523
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, 19:28
Replies: 5
Views: 523
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, 18:12
Replies: 5
Views: 523
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, 11:46
Replies: 8
Views: 633
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: 17
Views: 1,111
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: 596
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: 735
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: 732
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: 732
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: 37
Views: 4,546
Posted By alkis
Oh, missed that. Thanks Ross!

Oh, missed that. Thanks Ross!
Forum: News 03 July 2020, 14:32
Replies: 37
Views: 4,546
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: 675
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: 675
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,899
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,899
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,899
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,899
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,899
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: 945
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,899
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: 732
Posted By alkis
Wouldn't "-Idir1:,dir2" work?

Wouldn't "-Idir1:,dir2" work?
Forum: support.WinUAE 15 May 2020, 18:17
Replies: 5
Views: 625
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: 1,210
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: 1,210
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: 1,210
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: 1,153
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: 1,153
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: 1,153
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,308
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,308
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,585
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,585
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,243
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: 884
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: 884
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)
Showing results 1 to 40 of 557

 
Forum Jump

All times are GMT +2. The time now is 10:53.


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