Agon Light C Programming - An Introduction

  Рет қаралды 4,689

NCOT Technology

NCOT Technology

Күн бұрын

Instead of bashing away in BASIC, it's possible to do some coding in C on the Agon Light. Let's find out how in this introduction to an ongoing series where I figure out the Agon hardware and work on a game. I have no idea what game I want to make, and I'm not entirely sure how to achieve some of the necessary functions, but it'll be fun figuring it out and I hope you come along for the ride!
The first thing we need is a C compiler so that we're not stranded bashing code in BASIC, or getting lost and confused in raw assembly. There isn't an official C compiler, but Paul Cawte on Github has created a modification called AgDev for the unofficial C compiler toolchain for the Texas Instruments TI-84+ range of calculators, which have the same eZ80 CPU as the Agon Light.
I've written a post elsewhere on my site explaining how to set it up, and in this video show some of the things I've been working on. My aim is to develop some sort of game for the Agon Light using C, rather than BASIC.
Links:
Blog Post: ncot.uk/agon-l...
Github Repo: github.com/nco...
---
Bill Bertram, CC BY-SA 2.5 creativecommon..., via Wikimedia Commons
Video by Pavel Danilyuk: www.pexels.com...

Пікірлер: 14
@arronshutt
@arronshutt Жыл бұрын
"Or I'll give up and never mention it again..." made me laugh quite a bit. I've been interested in the Agon Light for a while, just trying not to get distracted from the two other major projects that I'm currently working on in my own time first! :)
@The8bitNoob
@The8bitNoob Жыл бұрын
The agon has Vi binary already on the sdcard that comes with the emulator. it's in the mos folder i believe. edit: and welcome to the Agon party 😁.
@Enos666
@Enos666 Жыл бұрын
I hope you keep at this, I'm tempted to pick one up to have a play around with.
@assifmirza130
@assifmirza130 11 ай бұрын
Just finding this video. Really well put together. It exactly describes my workflow. I am loving being able to use a capable host to write and compile C (AgDev also) and have a short compile test cycle on the emulator before ever going near the hardware and sdcards. Looking forward to see what you create. PS chest infections suck. I know. Hope you feel better soon.
@PhilHowlett
@PhilHowlett Жыл бұрын
Your video is perfect timing for me. I'm waiting for my Agon light to turn up in the mail so I'm setting up my own development environment. I'm curious to learn why you went down the CE C/C++ path rather than the z88dk path for the C compiler. I've just setup my environment for z88dk (compiled my hello.c file and can run it in the emulator).
@TheClassicsCoder
@TheClassicsCoder Жыл бұрын
For me, the main reason was the more modern C-Compiler in CE and the missing graphics support which I found easier to add in the CE toolchain. Normally I'm also on Z88DK fo the Speccy stuff.
@nickthesoulboy
@nickthesoulboy Жыл бұрын
Looking forward to the next one!
@lorensims4846
@lorensims4846 Жыл бұрын
I'm surprised it has a C compiler. The closest thing I had on my Atari 800 (with 48K) was Deep Blue C from the Atari Programmer Exchange. It was based on "small C" and didn't support structures or unions along with a lot of other features. Most annoying to me, the Atari keyboard didn't include braces so we had to us $( and $) instead.
@jumhig
@jumhig Жыл бұрын
Nice video! But why not mention the default/original C development environment for eZ80 , namely Zilog ZIDE 2. This is what I use for Agon Light dev, it's Windows only but that's not a problem for me. Would love to see more videos on Agon C programming, specifically how to upload bitmaps and manage sprites, which has a few gotchas. Also MOS functions, audio, keyboard / joystick input etc. I also have Agon C libraries for the graphical and audio functions, and the key up/down map.
@ncot_tech
@ncot_tech Жыл бұрын
To be honest the only time I looked at the Zilog C compiler was to see some #defines for the UART port. It is used for MOS though I discovered.
@jumhig
@jumhig Жыл бұрын
I see there is also a new "AgDev" C compiler for Agon too.
@greenfrogcoding
@greenfrogcoding 7 ай бұрын
Great video 👍
@mr_noodler
@mr_noodler 4 ай бұрын
Is there a C API for the Agon Light 2? I can’t find it anywhere
@ncot_tech
@ncot_tech 4 ай бұрын
Not exactly. The AgDev toolchain is the closest we have, combined with the console8 documentation available here agonconsole8.github.io/agon-docs/ Once you understand how the VDP is controlled by literally printing text to the screen with special control codes, the BBC Basic examples are fairly straight forward to understand. My Github repo contains some useful code if you have a dig around in it, specifically the functions for writing 8 and 16 bit values to the VDP.
Agon Light 2 - C Programming, Better Keyboard Routines, Joystick Ports
35:36
Programming Windows Screensavers - Agon Light Graphics Programming
37:49
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
This 8-Bit Computer Has Two CPUs (And One Acts As A GPU!)
24:29
Noel's Retro Lab
Рет қаралды 153 М.
Writing a game the hard way - from scratch using C. #1
34:20
NCOT Technology
Рет қаралды 202 М.
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3,4 МЛН
Sinclair BASIC vs BBC BASIC - How to fit an entire devkit inside 64K
22:01
Tilemap Game Engine Development - Agon Light C Programming
33:27
NCOT Technology
Рет қаралды 7 М.
I Made The Ultimate Cheating Device
9:39
ChromaLock
Рет қаралды 1,9 МЛН
When Optimisations Work, But for the Wrong Reasons
22:19
SimonDev
Рет қаралды 1,2 МЛН
Inside  The ' Agon Light 2 '  Fast Single board 8 bit computer.
39:34
Is this the FASTEST and CHEAPEST 8-Bit Computer Ever?
28:43
Noel's Retro Lab
Рет қаралды 185 М.
The Dark Art of Programming - Writing Cursed Code
13:12
NCOT Technology
Рет қаралды 2,9 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН