24 July 2014, 13:39 | #1 |
Registered User
Join Date: Jun 2013
Location: Australia
Posts: 685
|
Inline ASM
Hi Guys,
I'm going to come back and annoy you lot again until a goal is achieved I'm close to having the real hardware together for the first time in a long time and I didn't start programming till I was done with the Amiga unfortunately. I was wondering if inline assembler can be used in any Amiga C compiler, and if that locks you into it's kind of "safe shell" that prevents you doing hardware tricks without playing with the binary, etc. such as using real interrupts, etc. ? Also is it a waste of time starting without a HDD? I understand the ASM compiler has to at least write the compiled binary, but for a tight assembler program is there a lot of disk access going on at compile time? Cheers, Art. |
25 July 2014, 00:43 | #2 | ||
Banned
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
|
Quote:
Quote:
Both vbcc and GCC have 68k cross-development compilers which provide a much nicer environment than low spec Amigas. AmiDevCpp is powerful and easy to use for 68k cross-compiling using GCC under Windows. Vbcc is lightweight with few dependencies for cross-compiling from many different operating systems and environments. AmiKit or AROS Vision using UAE give a highly functional and fast Amiga environment and allow a quick install of vbcc on many modern computers. Last edited by matthey; 25 July 2014 at 00:48. |
||
25 July 2014, 03:47 | #3 |
Registered User
Join Date: Jun 2013
Location: Australia
Posts: 685
|
Thanks for the reply, I forgot a C compiler will be wanting to disk access digging for it's libraries etc. as well.
I'm only going for an A500, but looks like I need to look out for an A590 as well. Cheers, Art. |
25 July 2014, 05:05 | #4 | |
Banned
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
|
Quote:
http://www.apollo-core.com/bringup/apolloPhoenix.jpg http://i.imgur.com/7yqUiVh.png http://i.imgur.com/ZBT7XNC.png It should cost less than a used A590 and be out before the end of the year but not all the functionality will be available at first. http://www.amiga.org/forums/showthread.php?t=67716 |
|
25 July 2014, 17:18 | #5 | |
Registered User
Join Date: May 2014
Location: inside the emulator
Posts: 377
|
Quote:
|
|
26 July 2014, 13:24 | #6 | ||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
Quote:
Quote:
You can always access hardware registers. But in C you sometimes have to give the optimizer hints that you are reading or writing I/O registers, using the volatile keyword. Of course, special supervisor instructions, like rte or movec usually cannot be generated in C (although vbcc has a __interrupt attribute to save all registers and return with rte instead of rts). |
||
26 July 2014, 21:02 | #7 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
|
This is for A500?
It's not a waste of time starting to code Assembler without a HDD (but you will probably want two floppy drives to avoid disk swapping). For C packages I don't know, but at least for Assemblers there are bootable disk images you can use to get started and then just format a source disk and stick it in DF1:. The reason it's not a waste of time is your projects won't be very big at the start(?) and so you'll be programming while you wait for stuff. Agree with phx, inline asm is useful if most of the code is in C. And if you're accessing the hardware directly, C won't protect you. And don't mess around with old interfaces and clunky harddisks, there's the same CF card solutions as for A600/A1200 available for the A500 now, ACA500 and Kipper2k. |
26 July 2014, 22:30 | #8 | ||
Banned
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
|
Quote:
Yes, the accelerator is planned for Amiga computers with a 68000 in a socket including the 500, 1000, 2000 and CDTV. Quote:
|
||
27 July 2014, 02:03 | #9 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
|
Matthey, I was just asking xArtx if his question was for A500. Can I read more about your accelerator somewhere?
|
27 July 2014, 07:34 | #10 | |
Banned
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
|
Quote:
http://www.amiga.org/forums/showthread.php?t=67716 |
|
27 July 2014, 16:21 | #11 |
Registered User
Join Date: Jun 2013
Location: Australia
Posts: 685
|
Well I don't actually have an Amiga yet, but I got a good 1084S recently, and am motivated to get my old A500 setup I once had.
I'm all for emulators, but it's the hardware that will get me programming I think. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tool to convert asm to gnu asm (gas) | Asman | Coders. Asm / Hardware | 13 | 30 December 2020 11:57 |
Need an ASM manual | VoltureX | Coders. General | 2 | 17 November 2011 15:24 |
for ASM programmers | meynaf | Coders. General | 29 | 05 August 2010 10:00 |
Storm C V4...using inline assembler | NovaCoder | Coders. General | 11 | 26 February 2009 12:10 |
ASM Uni Course | BippyM | Coders. Tutorials | 27 | 18 September 2008 10:37 |
|
|