Show us yer programming projects!

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
Post Reply
User avatar
Istar
Baaaaaa!
Baaaaaa!
Posts: 4869
Joined: Mon Apr 22, 2002 4:42 pm 0
Location: London, UK.

Re: Show us yer programming projects!

Post by Istar »

That looks ace!

Here's a little textdump from my newly-restarted and now much nicer pet project:

Code: Select all

Sharp6502 Emulator Testbed              Started at 12:21:16

Instantiating 64K memory map...

Initialising memory...
> Loading 8192 bytes from c:\Documents and Settings\...\My Documents\Dev\VIC20\basic.901486-01.bin
> Loading 8192 bytes from c:\Documents and Settings\...\My Documents\Dev\VIC20\kernal.901486-07.bin

Instantiating 6502 CPU core...
; Sharp6502 Emulator (C) 2008 Aquila Arcana

;  PC  SP AC XR YR SR [NV-BDIZC]
; 0000 FF 00 00 00 00  00000000

; Memory Block Allocation
; 0000 - 1FFF   $2000 (08192) bytes - RAM
; 2000 - BFFF   $A000 (40960) bytes - Undefined
; C000 - FFFF   $4000 (16384) bytes - ROM

; Memory Dump
; BFC0   ?? ?? ?? ?? ?? ?? ?? ??   ?? ?? ?? ?? ?? ?? ?? ??   ? ? ? ? ? ? ? ?   ? ? ? ? ? ? ? ?
; BFD0   ?? ?? ?? ?? ?? ?? ?? ??   ?? ?? ?? ?? ?? ?? ?? ??   ? ? ? ? ? ? ? ?   ? ? ? ? ? ? ? ?
; BFE0   ?? ?? ?? ?? ?? ?? ?? ??   ?? ?? ?? ?? ?? ?? ?? ??   ? ? ? ? ? ? ? ?   ? ? ? ? ? ? ? ?
; BFF0   ?? ?? ?? ?? ?? ?? ?? ??   ?? ?? ?? ?? ?? ?? ?? ??   ? ? ? ? ? ? ? ?   ? ? ? ? ? ? ? ?
; C000   78 E3 67 E4 43 42 4D 42   41 53 49 43 30 C8 41 C7   x . g . C B M B   A S I C 0 . A .
; C010   1D CD F7 C8 A4 CB BE CB   80 D0 05 CC A4 C9 9F C8   . . . . . . . .   . . . . . . . .
; C020   70 C8 27 C9 1C C8 82 C8   D1 C8 3A C9 2E C8 4A C9   p . ' . . . . .   . . : . . . J .
; C030   2C D8 64 E1 52 E1 61 E1   B2 D3 23 D8 7F CA 9F CA   , . d . R . a .   . . # . ⌂ . . .
; C040   56 C8 9B C6 5D C6 85 CA   26 E1 BA E1 C3 E1 7A CB   V . . . ] . . .   & . . . . . z .
; C050   41 C6 39 DC CC DC 58 DC   00 00 7D D3 9E D3 71 DF   A . 9 . . . X .   . . } . . . q .
; C060   94 E0 EA D9 ED DF 61 E2   68 E2 B1 E2 0B E3 0D D8   . . . . . . a .   h . . . . . . .
; C070   7C D7 65 D4 AD D7 8B D7   EC D6 00 D7 2C D7 37 D7   | . e . . . . .   . . . . , . 7 .
; C080   79 69 D8 79 52 D8 7B 2A   DA 7B 11 DB 7F 7A DF 50   y i . y R . { *   . { . . ⌂ z . P
; C090   E8 CF 46 E5 CF 7D B3 DF   5A D3 CE 64 15 D0 45 4E   . . F . . } . .   Z . . d . . E N
; C0A0   C4 46 4F D2 4E 45 58 D4   44 41 54 C1 49 4E 50 55   . F O . N E X .   D A T . I N P U
; C0B0   54 A3 49 4E 50 55 D4 44   49 CD 52 45 41 C4 4C 45   T . I N P U . D   I . R E A . L E
; C0C0   D4 47 4F 54 CF 52 55 CE   49 C6 52 45 53 54 4F 52   . G O T . R U .   I . R E S T O R
; C0D0   C5 47 4F 53 55 C2 52 45   54 55 52 CE 52 45 CD 53   . G O S U . R E   T U R . R E . S
; C0E0   54 4F D0 4F CE 57 41 49   D4 4C 4F 41 C4 53 41 56   T O . O . W A I   . L O A . S A V
; C0F0   C5 56 45 52 49 46 D9 44   45 C6 50 4F 4B C5 50 52   . V E R I F . D   E . P O K . P R

Stopped at 12:21:16             Elapsed 00:00:00.0156250
User avatar
the2bears
Baaaaaa!
Baaaaaa!
Posts: 3686
Joined: Wed Oct 27, 2004 9:30 pm 0
Location: The City by the Bay
Contact:

Re: Show us yer programming projects!

Post by the2bears »

Awesome, I love Bank Panic :)

Bill
the2bears - the indie shmup blog
User avatar
evilpaul
Baaaa!
Baaaa!
Posts: 811
Joined: Wed Sep 29, 2004 2:01 pm 0
Location: #ukscene, helsinki branch
Contact:

Re: Show us yer programming projects!

Post by evilpaul »

A PC demo called "Ribbons, Tunnels & Techno"
Image
Grab it *here* from Pouet (download link is at the top right, next to the picture)

Came 4th out of 8 (bah!) in the Sundown 2008 combined demo compo.
User avatar
failrate
Baaaaaa!
Baaaaaa!
Posts: 2354
Joined: Sun May 23, 2004 6:54 am 0
Location: Sandy Eggo
Contact:

Re: Show us yer programming projects!

Post by failrate »

I was very inspired by fluxus, so I started work on a similar project:

Image

Some clues to the project are in the consoles and such, but the short of it is that I'm controlling GL display lists with JavaScript :)
User avatar
Barney
Baaaaaa!
Baaaaaa!
Posts: 2131
Joined: Tue Aug 23, 2005 7:59 pm 0
Location: UK, Broughton, Brigg

Re: Show us yer programming projects!

Post by Barney »

I've just updated my Sinclair BASIC development environment (yes, it is intended as a joke), and here's the latest tool:

Image

A Speccy screen paintbox. It's ace, and the best there is at the moment. Even imports JPEGs and stuff! The main announcement thread is here:

http://www.worldofspectrum.org/forums/s ... hp?t=20950

In case anyone is interested :-p
"Oh dear lord, I slightly soiled myself. Oxfam won’t be pleased."
User avatar
failrate
Baaaaaa!
Baaaaaa!
Posts: 2354
Joined: Sun May 23, 2004 6:54 am 0
Location: Sandy Eggo
Contact:

Re: Show us yer programming projects!

Post by failrate »

That's pretty cool. Just to clarify, it exports in GIF and such *and* formats appropriate for the Spectrum?
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: Show us yer programming projects!

Post by Kamineko »

piku wrote:
Kamineko wrote:Image
You're starting to write games that run as animated GIFs? Was the DS too easy or something ;)
I forgot to post a link to the full version when it got put up. Here you go:

http://thedailywtf.com/Articles/Magenta-Kong.aspx
User avatar
Barney
Baaaaaa!
Baaaaaa!
Posts: 2131
Joined: Tue Aug 23, 2005 7:59 pm 0
Location: UK, Broughton, Brigg

Re: Show us yer programming projects!

Post by Barney »

failrate wrote:That's pretty cool. Just to clarify, it exports in GIF and such *and* formats appropriate for the Spectrum?
Yes - there's two graphical editors in there.

The whole package is an IDE for Sinclair BASIC, with an emulator integrated into it for running your projects, with a flexible BASIC editor/debugger and an assembler/monitor. The graphic editors are there for creating sprites/UDGs (with animation facilities) which can export directly into your project or as binary files for loading from a virtual tape file (there's a tool for creating TZX/TAP files), and the other editor is a SCREEN$ editor which acts like paintshop for the speccy. It can also export as either binary files for a virtual tape or as a GIF.

The paintbox can also import from GIF/PNG/JPEG/BMP and convert to speccy format with a variety of colour matching and dithering options. The paintbox can also use any graphics you create in the sprite editor as pen or fill styles, so the two can work together seamlessly. I'm quite chuffed with it :-)

I'm currently working on a vector graphics editor for the paintbox, and a sequencer for the BEEP command (and PLAY for the 128k).

It all started off as a joke - Sinclair BASIC being the simplest language I've ever experienced, and now it has an IDE similar to Delphi for it :-)
"Oh dear lord, I slightly soiled myself. Oxfam won’t be pleased."
User avatar
Istar
Baaaaaa!
Baaaaaa!
Posts: 4869
Joined: Mon Apr 22, 2002 4:42 pm 0
Location: London, UK.

Re: Show us yer programming projects!

Post by Istar »

A little more progress. Nothing much to see, but a whole lot slicker under the covers. The 6502 emulation is mostly how I want it, and the test harness (which is an emulated VIC-20) is starting to come together.

Code: Select all

26/09/2008 16:50:31 - Test6502.Program.Main -> Sharp6502 Emulator Testbed Started

Initialising 64K memory map...
26/09/2008 16:50:31 - Sharp6502.MemoryMap.LoadMemory -> Loading 65536 bytes of Undefined at 0000 (-- Undefined --)
26/09/2008 16:50:31 - Sharp6502.MemoryMap.LoadMemory -> Loading 1024 bytes of RAM at 0000 (BASIC Working Storage)
26/09/2008 16:50:31 - Sharp6502.MemoryMap.LoadMemory -> Loading 256 bytes of RAM at 0100 (6502 Processor Stack)
26/09/2008 16:50:31 - Sharp6502.MemoryMap.LoadMemory -> Loading 3584 bytes of RAM at 1000 (User Memory)
26/09/2008 16:50:31 - Sharp6502.MemoryMap.LoadMemory -> Loading 506 bytes of RAM at 1E00 (Screen Memory)
26/09/2008 16:50:31 - Sharp6502.MemoryMap.LoadMemory -> Loading 512 bytes of RAM at 9600 (Colour Memory)
26/09/2008 16:50:31 - Sharp6502.MemoryMap.LoadMemory -> Loading 16 bytes of Mapped at 9000 (6561 VIC Registers)
26/09/2008 16:50:31 - Sharp6502.MemoryMap.LoadMemory -> Loading 32 bytes of Mapped at 9110 (6522 VIA Registers)
26/09/2008 16:50:31 - Sharp6502.MemoryMap.LoadMemory -> Loading 4096 bytes of ROM at 8000 (Character Set Generator)
26/09/2008 16:50:31 - Sharp6502.MemoryMap.LoadMemory -> Loading 8192 bytes of ROM at C000 (BASIC Interpreter)
26/09/2008 16:50:31 - Sharp6502.MemoryMap.LoadMemory -> Loading 8192 bytes of ROM at E000 (KERNAL Operating System)

Initialising 6502 core...
;  PC  SP AC XR YR SR [NV-BDIZC]
; 0000 FF 00 00 00 20  00100000

; Memory Block Allocation
; 0000 - 00FF   RAM     (00256 / 0x0100 bytes)  BASIC Working Storage
; 0100 - 01FF   RAM     (00256 / 0x0100 bytes)  6502 Processor Stack
; 0200 - 03FF   RAM     (00512 / 0x0200 bytes)  BASIC Working Storage
; 0400 - 0FFF   ---     (03072 / 0x0C00 bytes)  -- Undefined --
; 1000 - 1DFF   RAM     (03584 / 0x0E00 bytes)  User Memory
; 1E00 - 1FF9   RAM     (00506 / 0x01FA bytes)  Screen Memory
; 1FFA - 7FFF   ---     (24582 / 0x6006 bytes)  -- Undefined --
; 8000 - 8FFF   ROM     (04096 / 0x1000 bytes)  Character Set Generator
; 9000 - 900F   I/O     (00016 / 0x0010 bytes)  6561 VIC Registers
; 9010 - 910F   ---     (00256 / 0x0100 bytes)  -- Undefined --
; 9110 - 912F   I/O     (00032 / 0x0020 bytes)  6522 VIA Registers
; 9130 - 95FF   ---     (01232 / 0x04D0 bytes)  -- Undefined --
; 9600 - 97FF   RAM     (00512 / 0x0200 bytes)  Colour Memory
; 9800 - BFFF   ---     (10240 / 0x2800 bytes)  -- Undefined --
; C000 - DFFF   ROM     (08192 / 0x2000 bytes)  BASIC Interpreter
; E000 - FFFF   ROM     (08192 / 0x2000 bytes)  KERNAL Operating System

; Memory Dump
; C470   03 20 C2 DD A9 76 A0 C3   20 1E CB A9 80 20 90 FF   . . . . . v . .   . . . . . . . .
; C480   6C 02 03 20 60 C5 86 7A   84 7B 20 73 00 AA F0 F0   l . . . ` . . z   . { . s . . . .
; C490   A2 FF 86 3A 90 06 20 79   C5 4C E1 C7 20 6B C9 20   . . . : . . . y   . L . . . k . .
; C4A0   79 C5 84 0B 20 13 C6 90   44 A0 01 B1 5F 85 23 A5   y . . . . . . .   D . . . _ . # .
; C4B0   2D 85 22 A5 60 85 25 A5   5F 88 F1 5F 18 65 2D 85   - . " . ` . % .   _ . . _ . e - .

; Simple Disassembly
; C480  6C 02 03  JMP ($0302)
; C483  20 60 C5  JSR $C560
; C486  86 7A     STX $7A
; C488  84 7B     STY $7B
; C48A  20 73 00  JSR $0073
; C48D  AA        TAX
; C48E  F0 F0     BEQ $F0
; C490  A2 FF     LDX #$FF
; C492  86 3A     STX $3A
; C494  90 06     BCC $06
; C496  20 79 C5  JSR $C579
; C499  4C E1 C7  JMP $C7E1

; Sharp6502 Emulator (C) 2008 Aquila Arcana

Sharp6502CoreExec is executing
Sharp6502CoreExec is executing

26/09/2008 16:50:31 - Test6502.Program.Main -> Stopped at 04:50:31              Elapsed 00:00:00.0781545
User avatar
failrate
Baaaaaa!
Baaaaaa!
Posts: 2354
Joined: Sun May 23, 2004 6:54 am 0
Location: Sandy Eggo
Contact:

Re: Show us yer programming projects!

Post by failrate »

How many emulators is this, so far, Istar?
User avatar
Istar
Baaaaaa!
Baaaaaa!
Posts: 4869
Joined: Mon Apr 22, 2002 4:42 pm 0
Location: London, UK.

Re: Show us yer programming projects!

Post by Istar »

Hehe. One continually-evolving one, really. It's the pursuit of the perfect 6502 I'm after, rather than a host machine like the VIC - I'm just using the VIC memory map and ROMs as the test harness, there will never be a feature-complete VIC-20 emulator as I think VICE does it too well, and anyway that's not what I'm after.

I'll stop posting progress if it's getting boring.
User avatar
sack
Baaaaaaa!
Baaaaaaa!
Posts: 7077
Joined: Fri May 10, 2002 4:13 pm 0
XBL Gamertag: evilgopher
PSN: sixFiveOhTwo
Location: Rijswijk, The Netherlands
Contact:

Re: Show us yer programming projects!

Post by sack »

evilpaul wrote:A PC demo called "Ribbons, Tunnels & Techno"
Image
Grab it *here* from Pouet (download link is at the top right, next to the picture)

Came 4th out of 8 (bah!) in the Sundown 2008 combined demo compo.
is there a video of that? My desktop PC isn't so just a collection of what i could carry in my luggage without breaking the weight allowance (no PSU, case or monitor) and only the 2D textures from the corners of the screen show on my laptop for some reason
User avatar
Barney
Baaaaaa!
Baaaaaa!
Posts: 2131
Joined: Tue Aug 23, 2005 7:59 pm 0
Location: UK, Broughton, Brigg

Re: Show us yer programming projects!

Post by Barney »

sack wrote: is there a video of that? My desktop PC isn't so just a collection of what i could carry in my luggage without breaking the weight allowance (no PSU, case or monitor) and only the 2D textures from the corners of the screen show on my laptop for some reason
Same here on my laptop - ATI x1250, DX10+Vista, and all I get are the textures in the corners :(
"Oh dear lord, I slightly soiled myself. Oxfam won’t be pleased."
User avatar
oNyx
Baaaaa!
Baaaaa!
Posts: 1652
Joined: Mon Sep 08, 2003 1:24 am 0
Location: de/fd

Re: Show us yer programming projects!

Post by oNyx »

Ye, also just corners here. Also an ATI x1250 (latest drivers).
User avatar
evilpaul
Baaaa!
Baaaa!
Posts: 811
Joined: Wed Sep 29, 2004 2:01 pm 0
Location: #ukscene, helsinki branch
Contact:

Re: Show us yer programming projects!

Post by evilpaul »

Ah.. interesting :(

If one of you who is having problems with it could run it from the command line with "debug" as an option and then PM me the resulting "debug.log" file that would be super ace. I've now got a horrible feeling that it runs fine on NVidia but not on ATI... ;(

I'll see if I can get a video done too..
Post Reply