English Amiga Board Amiga Lore


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 216
Search took 0.04 seconds.
Search: Posts Made By: guy lateur
Forum: Coders. C/C++ 25 August 2017, 21:21
Replies: 457
Views: 31,984
Posted By guy lateur
Linking to auto.lib sure solved some similar...

Linking to auto.lib sure solved some similar problems I had. You can read more about that here (just ignore the first couple of posts): http://eab.abime.net/showthread.php?t=87965

I understood...
Forum: Coders. C/C++ 20 August 2017, 14:03
Replies: 25
Views: 1,391
Posted By guy lateur
Thanks, good stuff! :great

Thanks, good stuff! :great
Forum: Coders. Asm / Hardware 07 August 2017, 21:28
Replies: 83
Views: 4,361
Posted By guy lateur
Nice! :great

Nice! :great
Forum: Coders. C/C++ 28 July 2017, 19:52
Replies: 4
Views: 422
Posted By guy lateur
http://eab.abime.net/showthread.php?p=1170592#post...

http://eab.abime.net/showthread.php?p=1170592#post1170592 ;)
Forum: Coders. C/C++ 26 July 2017, 19:29
Replies: 22
Views: 1,287
Posted By guy lateur
Update: the copper bar now spans the whole...

Update: the copper bar now spans the whole vertical range of the screen.

As mentioned earlier, I was annoyed that I had some hard coded numbers in my source regarding the first (0x2b, anyone?) and...
Forum: Coders. C/C++ 26 July 2017, 14:11
Replies: 22
Views: 1,287
Posted By guy lateur
Thanks for the pointers, I may look into that...

Thanks for the pointers, I may look into that sometime. It's a really minor annoyance, though, so I probably won't bother either. There's still a lot of way more fun stuff on my todo list.. ;)
Forum: Coders. C/C++ 26 July 2017, 14:06
Replies: 22
Views: 1,287
Posted By guy lateur
Ok, thanks for the explanation, roondar, I...

Ok, thanks for the explanation, roondar, I appreciate it! :great

I'd like to be friends with the OS for as long as possible, so I'll just use the priority for now -- it seems to work, after all....
Forum: Coders. C/C++ 25 July 2017, 22:39
Replies: 22
Views: 1,287
Posted By guy lateur
Here's another update. It has the '3D' effect, a...

Here's another update. It has the '3D' effect, a customisable gradient (and ellipsoid path) for the bar, a fov for the camera and so on.

It still has some hard coded screen/view/whatever...
Forum: Coders. C/C++ 24 July 2017, 14:24
Replies: 22
Views: 1,287
Posted By guy lateur
Well it's still slowly beginning to dawn on me...

Well it's still slowly beginning to dawn on me how all this stuff fits together, really, especially the interrupt stuff, which I don't know anything about yet. I do remember that Photon has an entire...
Forum: Coders. C/C++ 23 July 2017, 19:09
Replies: 22
Views: 1,287
Posted By guy lateur
Ok, I'm not 100% sure how, but I got it working...

Ok, I'm not 100% sure how, but I got it working as expected, see attached. The major ingredient seems to be the allocation of an extra buffer copper list. You calculate your next copper list in this...
Forum: Coders. C/C++ 23 July 2017, 00:30
Replies: 22
Views: 1,287
Posted By guy lateur
Something is not right with my code. ATM, it is...

Something is not right with my code. ATM, it is supposed to display a pure red bar of 13 lines height, moving from top to bottom and back, following a (precalculated) sine wave. You will notice,...
Forum: Coders. C/C++ 22 July 2017, 01:11
Replies: 22
Views: 1,287
Posted By guy lateur
Ah crap, I can't believe I missed that.. Thanks...

Ah crap, I can't believe I missed that.. Thanks again for your help, now it works! :great
Forum: Coders. C/C++ 21 July 2017, 22:54
Replies: 22
Views: 1,287
Posted By guy lateur
I've reorganised my code (including a local...

I've reorganised my code (including a local include/colorUtil.h and src/colorUtil.c), adjusted my makefile to include the extra .c file and to also look for header files in this local directory. It...
Forum: Coders. C/C++ 21 July 2017, 22:16
Replies: 22
Views: 1,287
Posted By guy lateur
Thanks for clarifying this, alkis, I guess I was...

Thanks for clarifying this, alkis, I guess I was a little confused as I assumed this would require extra compilation and linking steps, but I'll probably just need to put the .c files in my make...
Forum: Coders. C/C++ 21 July 2017, 21:40
Replies: 22
Views: 1,287
Posted By guy lateur
Ok, here's an update, see attachment. We have a...

Ok, here's an update, see attachment. We have a moving copper bar (vertically, along a sine) with a customisable color gradient -- woohoo! :cool

You will notice that I'm including .c files in my...
Forum: Coders. C/C++ 21 July 2017, 17:48
Replies: 22
Views: 1,287
Posted By guy lateur
Oh I see, you cheeky little devil.. :p No, that...

Oh I see, you cheeky little devil.. :p
No, that kind of thing should probably suffice for now.. ;)
Forum: Coders. C/C++ 21 July 2017, 16:07
Replies: 22
Views: 1,287
Posted By guy lateur
Heh, thanks, but that will be a little much to...

Heh, thanks, but that will be a little much to digest right now. I quickly looked at main.c, and it ends (what I think is) its frame loop with:
if (faster_machine) WaitTOF(); As my target is a EC030...
Forum: Coders. C/C++ 21 July 2017, 15:33
Replies: 22
Views: 1,287
Posted By guy lateur
Well I could understand that if a lot of stuff...

Well I could understand that if a lot of stuff has to be done every frame, but if this simple color change (in the middle of the screen, btw) is already too slow, than there's no way I can do the...
Forum: Coders. C/C++ 21 July 2017, 14:42
Replies: 22
Views: 1,287
Posted By guy lateur
Using the Copper

I'm playing around with the copper, and I came about this example: https://github.com/weiju/amiga_hardware_in_c/blob/master/episode-002/startup.c I've attached the source and exe.

I've expanded...
Forum: Coders. C/C++ 20 July 2017, 22:50
Replies: 21
Views: 796
Posted By guy lateur
Well if it's the amiga.lib implementation, it...

Well if it's the amiga.lib implementation, it would be surprising that it outputs anything at all in this case, as it doesn't seem to support %f -- at least not according to the docs?
Forum: Coders. C/C++ 20 July 2017, 22:36
Replies: 21
Views: 796
Posted By guy lateur
Alright, nice investigation, alkis! :great So...

Alright, nice investigation, alkis! :great
So what on earth is going on? :spin
Forum: Coders. C/C++ 20 July 2017, 22:25
Replies: 21
Views: 796
Posted By guy lateur
I had this option on already; it doesn't seem to...

I had this option on already; it doesn't seem to solve the problem, unfortunately.
Forum: Coders. C/C++ 20 July 2017, 22:10
Replies: 21
Views: 796
Posted By guy lateur
From the tests I've run, neither sin nor printf...

From the tests I've run, neither sin nor printf seems to automatically promote floats to doubles. Which is probably for the best, really. I only get this working when going 'all doubles', as matthey...
Forum: Coders. C/C++ 20 July 2017, 21:49
Replies: 21
Views: 796
Posted By guy lateur
But the sin function isn't variadic (if I'm right...

But the sin function isn't variadic (if I'm right about what this means), so this auto-promotion doesn't happen, right? Unless there's something else I'm missing..
Forum: Coders. C/C++ 20 July 2017, 21:44
Replies: 21
Views: 796
Posted By guy lateur
Well you're definitely onto something with the...

Well you're definitely onto something with the 'all double' path. The code below works on all 3 platforms:


#include <math.h>
#include <stdio.h>

int main (void)
{
int nrSamples = 256;
Forum: Coders. C/C++ 20 July 2017, 21:22
Replies: 21
Views: 796
Posted By guy lateur
Thanks alkis, but this gives the exact same...

Thanks alkis, but this gives the exact same results:

printf("%3d : %f : %f\n", iSample, (double) currAngle, (double) currSine);
Forum: Coders. C/C++ 20 July 2017, 21:10
Replies: 21
Views: 796
Posted By guy lateur
This does indeed give the expected results on...

This does indeed give the expected results on 3.X, but still gurues on the default A1200 (3.1). Linking to mieee.lib, btw. So.. what would you say is the problem: the %f printf function (whatever one...
Forum: Coders. C/C++ 20 July 2017, 20:28
Replies: 21
Views: 796
Posted By guy lateur
Btw, if I link to msoft.lib, it works ok on all 3...

Btw, if I link to msoft.lib, it works ok on all 3 platforms. Just a whole lot slower, unfortunately.. :sad
Forum: Coders. C/C++ 20 July 2017, 19:35
Replies: 21
Views: 796
Posted By guy lateur
[vbcc/win] Doing some maths..

Just a newbie exploring C, and trying to write some maths code -- eg to generate a sine table. So nothing to see, here.. ;)

I'm using the latest version of vbcc on win64. I've attached the code,...
Forum: Coders. C/C++ 19 July 2017, 20:31
Replies: 15
Views: 665
Posted By guy lateur
Fantastically sweet with sugar on top! :great

Fantastically sweet with sugar on top! :great
Forum: Coders. C/C++ 19 July 2017, 20:04
Replies: 15
Views: 665
Posted By guy lateur
Ok, I see, I think. Although I don't fully...

Ok, I see, I think. Although I don't fully understand the _main/__main/exit/_exit thing (please allow me to let this sink in), that does seem to make a lot more sense than whatever it was I was...
Forum: Coders. C/C++ 19 July 2017, 17:51
Replies: 15
Views: 665
Posted By guy lateur
Alright, so vclib is where the magic is at. That...

Alright, so vclib is where the magic is at. That would make sense, always being linked in anyway. So I guess this contains some code that is always run near the end of the linking stage, that adds in...
Forum: Coders. C/C++ 19 July 2017, 15:25
Replies: 15
Views: 665
Posted By guy lateur
Well, they're documented in the libraries section...

Well, they're documented in the libraries section of the ROM kernel reference manual, so I guess they're in ROM.. ;)

http://amigadev.elowar.com/read/ADCD_2.1/Libraries_Manual_guide/node0002.html
Forum: Coders. C/C++ 19 July 2017, 14:56
Replies: 15
Views: 665
Posted By guy lateur
Are all these libraries (even intuition and...

Are all these libraries (even intuition and gadtools) located in ROM? Because I don't have any of them as a .library file in my LIBS: folder, and yet the example runs perfectly fine. I have 3.X ROMs.
Forum: Coders. C/C++ 19 July 2017, 14:20
Replies: 15
Views: 665
Posted By guy lateur
Nice, thanks! :)

Nice, thanks! :)
Forum: Coders. C/C++ 19 July 2017, 13:51
Replies: 15
Views: 665
Posted By guy lateur
It does indeed, thanks for the tip! :great It...

It does indeed, thanks for the tip! :great It doesn't even seem to require linking to amiga.lib, nor the specification of the aos68k config file -- although I may to keep the latter in, just for good...
Forum: Coders. C/C++ 19 July 2017, 12:32
Replies: 15
Views: 665
Posted By guy lateur
Yep, that's way better, thanks! :great I'm...

Yep, that's way better, thanks! :great
I'm only getting 'Reference to undefined symbol' errors now.. ;)

I thought vbcc had an 'automatic opening of libraries used' option, but I can't seem to...
Forum: Coders. Asm / Hardware 18 July 2017, 20:44
Replies: 89
Views: 12,985
Posted By guy lateur
Thanks again for the binaries, Leffmann, vasm an...

Thanks again for the binaries, Leffmann, vasm an vlink work perfectly. However, I'm having problems running vbccm68k.exe. I've made a separate thread about this here:...
Forum: Coders. C/C++ 18 July 2017, 18:55
Replies: 15
Views: 665
Posted By guy lateur
Also, if I add -v to turn on verbose mode, it...

Also, if I add -v to turn on verbose mode, it says 'Unknown Flag <-v>'.
Forum: Coders. C/C++ 18 July 2017, 18:43
Replies: 15
Views: 665
Posted By guy lateur
[SOLVED] Vbcc on Win: Flag <-o> needs string

I'm getting this error when compiling a testing exe in c. Here's what it says:

vbcc -I "E:\\Amiga\\Dev\\NDK_3.9\\Include\\include_h" basicWin.c -o basicWin.exe
error 3: Flag <-o> needs string...
Showing results 1 to 40 of 216

 
Forum Jump

All times are GMT +2. The time now is 12:01.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.16962 seconds with 9 queries