17 February 2021, 15:54 | #61 | |
Registered User
Join Date: Jun 2020
Location: Druidia
Posts: 389
|
Quote:
You still have access to all the Amiga libraries, so you can use those for loading. I presume this would be a better choice than any CRT for A500. That being said, I don't actually know much about the Amiga libs. I'd be curious if anyone has managed to load files or use the trackdisk device in a game or demo. Last edited by Jobbo; 17 February 2021 at 17:01. |
|
17 February 2021, 17:39 | #62 | |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
Quote:
As I enjoy working in assembler and I'm not a C man it'll hopefully be ok. Thanks for posting a link to the video! |
|
17 February 2021, 18:07 | #63 |
Registered User
Join Date: Feb 2019
Location: Munich, Germany
Posts: 63
|
|
17 February 2021, 18:43 | #64 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,421
|
On the topic of files, is there any way to set up the VS Code environment so that there are external files included in the WinUAE environment? Or is it truly single-executable only?
I did try to figure that out, but I couldn't find it in the documentation |
18 February 2021, 11:44 | #65 |
Registered User
Join Date: Jun 2016
Location: UK
Posts: 428
|
This hurts my brain :-)
Please everyone use uint8_t, it's so much more precise and descriptive! Then again I can't really get on board with C++ for this kind of work. I suppose it makes organizing code a bit nicer but there are too many useful things you can do in C that were removed from C++. |
18 February 2021, 12:22 | #66 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,247
|
uint8_t is fine. As long as you have the "stdint.h" header available...
|
18 February 2021, 17:50 | #67 | |
Registered User
Join Date: Aug 2006
Location: Scunthorpe/United Kingdom
Posts: 2,025
|
Quote:
|
|
18 February 2021, 20:39 | #68 | ||
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,247
|
Quote:
Quote:
|
||
18 February 2021, 21:41 | #69 | |
Registered User
Join Date: Dec 2019
Location: Newcastle
Posts: 67
|
Quote:
I am old school and would tend to steer to unsigned char, unless the project had SIL (Safety Integrity Level) requirements then a bespoke naming convention for types would be used. Either way type naming is down to personal preference and I do not see many coders having an issue with what convention was used, as long as its spaces not tabs lol. |
|
18 February 2021, 23:51 | #70 |
OCS forever!
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 418
|
|
19 February 2021, 01:49 | #71 |
Registered User
Join Date: Aug 2006
Location: Scunthorpe/United Kingdom
Posts: 2,025
|
It gets worse; I've been known to store executable code in strings too, and run it from there.
|
19 February 2021, 10:28 | #72 |
Registered User
Join Date: Jun 2016
Location: UK
Posts: 428
|
|
19 February 2021, 16:03 | #73 | |
Registered User
Join Date: Aug 2018
Location: Untergrund/Germany
Posts: 408
|
Quote:
I have to say i'm quite impressed that you actually finished all of your asm game projects and with such high quality. Now looking forward your C ventures |
|
19 February 2021, 17:22 | #74 | |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
Quote:
I have the amiga-debug ide setup now and I have to say it's very easy to install. VSCode and C is foreign to me so it's going to take a while to get used to. In Bartman's presentation he quickly swapped from C to Assembler... I haven't figured out how to do that just yet - any quick tips? Also, can I still do source level debugging on pure assembler routines? I have a lot of general routines already written in assembler that I'd like to package up as a library and call them from C, but I still need to trace the assembler from time to time. Geezer |
|
19 February 2021, 23:09 | #75 |
Registered User
Join Date: Feb 2019
Location: Munich, Germany
Posts: 63
|
Sure you can. Just put your data files in the same directory as your project/executable and load them via dos.library functions
|
19 February 2021, 23:11 | #76 | |
Registered User
Join Date: Feb 2019
Location: Munich, Germany
Posts: 63
|
Quote:
I think tracing assembler should work, but not 100% sure on that now.. been a while |
|
20 February 2021, 00:08 | #77 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,421
|
|
20 February 2021, 10:17 | #78 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,247
|
Yeah. We at least need Forbid/Permit/Enable/Disable/AllocMem, and maybe dos functions.
Except that calling amiga OS needs to be done in assembly. Or are there some compatible header/other files to make that transparent (like in Bebbo's distro) ? Having examined your Tiny games startup shells, I saw you're doing the minimal calls to freeze the system, and then restore it. I suppose it's part of an asm startup. |
20 February 2021, 11:10 | #79 | |
OCS forever!
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 418
|
Quote:
For another example I did bits of the C program for amigaklang with Bartman's gcc which does a full system takedown and restore as well and plays music using PHX's replay (I did call the PHX replay using a small asm wrapper though) Amigaklang is here: https://www.pouet.net/prod.php?which=85351 Just go intro the exe_creator folder and look at main_executable.c. OpenLibrary example from that: Code:
// We will use the graphics library only to locate and restore the system copper list once we are through. GfxBase = (struct GfxBase *)OpenLibrary((CONST_STRPTR)"graphics.library",0); if (!GfxBase) Exit(0); Last edited by Antiriad_UK; 20 February 2021 at 11:18. |
|
02 April 2021, 12:45 | #80 | |
Mostly Harmless
Join Date: Aug 2004
Location: Northern Ireland
Posts: 1,115
|
Great thread, I love this sort of information
Quote:
Does this mean you queue all blits then, at the correct raster, you busy loop through the queue blit->wait->blit->wait->blit->... ? Do you loop checking VPOS for the right line to start the queue or use an interrupt? |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tinyus Open Beta Released (OCS Gradius port) | pink^abyss | News | 213 | 11 May 2023 01:50 |
Tinyus - An arcade quality Amiga OCS port of Gradius/Nemesis | pink^abyss | News | 103 | 12 May 2021 04:58 |
Tech AMIGA magazine | thinlega | request.Apps | 9 | 19 February 2021 17:26 |
Trackmo tech | paraj | Coders. Asm / Hardware | 4 | 30 March 2017 20:57 |
AmigaWorld Tech Journal | Shadowfire | AMR news | 7 | 26 April 2009 19:14 |
|
|