Diskette

Topics covering the 6502 emulator in Ranger Citadel: tutorials, specs, source code and share your work!
User avatar
Bonechip
Initiate
Posts: 13
Joined: April 16th, 2012, 12:18 pm

HA! Very Cool!

In the folder: C:\Users\XXXXXXX\Documents\My Games\Wasteland2\Drive1

There is a file called: Diskette (with no extension)

Here is what is in it when viewed with notepad:

Image
User avatar
Drool
Forum Moderator
Posts: 10185
Joined: March 17th, 2012, 9:58 pm
badge image for 5p2s6t.png
badge image for ijw2ib.png

That... that is awesome.
Alwa nasci korliri das.
User avatar
Crosmando
Supreme Jerk
Posts: 5136
Joined: January 3rd, 2013, 8:48 am
badge image for 5p2s6t.png
badge image for 3rz1is.png
badge image for ijw2ib.png

Wait, but what does it mean exactly? They made a mini-game that can be played within WL2?
Matthias did nothing wrong!
ShaneD53
Novice
Posts: 32
Joined: April 17th, 2012, 5:16 am

They've emulated a computer within Wasteland 2 that the user can write real programming code for.
User avatar
sumbitch
Novice
Posts: 47
Joined: August 1st, 2014, 1:40 pm

:shock: Awesome!
Where you at, you sumbitch?!
Tangaroa
Scholar
Posts: 116
Joined: December 1st, 2013, 9:10 am

Oh, that's what that terminal in the museum is all about. Ultimate easter egg!
User avatar
The Tallest
Adventurer
Posts: 972
Joined: March 15th, 2012, 3:30 am

This thread needs to be stickied so that people can pay their programs for everyone to try in game. This is so awesome. Too bad I can't program but it'll be cool trying out everyone's programs they make.
I am a member of Macho Yintit's Society for Pantsless Landsharks.
David Ngo wrote: There are two kinds of people: sheep and sharks. Sharks are winners, and they don't look back because they have no necks. Necks are for sheep.
User avatar
tuluse
Adventurer
Posts: 535
Joined: May 2nd, 2012, 8:29 am

hah, great find!
Joby
Scholar
Posts: 129
Joined: February 23rd, 2012, 9:21 am
badge image for 4o80c0.png

The game is afoot...

Binary file in hex editor:
Image

assembly:

Code: Select all

* = $7000

lda $ff02
lda #$40
sta $ff0d

sec
lda #255
spinloop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
sbc #1
bne spinloop

lda $ff0c

lda #$41
sta $021a
lda #$47
sta $021b
lda #$41
sta $021c
lda #$56
sta $021d
lda #$45
sta $021e
lda #$5d
sta $0220
lda #$5b
sta $0221

brk
Ruby script:

Code: Select all

program = [0xAD, 0x02, 0xFF, 0xA9, 0x40, 0x8D, 0x0D, 0xFF, 
0x38, 0xA9, 0xFF, 0xEA, 0xEA, 0xEA, 0xEA, 0xEA,
0xEA, 0xEA, 0xEA, 0xEA, 0xEA, 0xE9, 0x01, 0xD0, 
0xF2, 0xAD, 0x0C, 0xFF, 0xA9, 0x41, 0x8D, 0x1A,
0x02, 0xA9, 0x47, 0x8D, 0x1B, 0x02, 0xA9, 0x41, 
0x8D, 0x1C, 0x02, 0xA9, 0x56, 0x8D, 0x1D, 0x02,
0xA9, 0x45, 0x8D, 0x1E, 0x02, 0xA9, 0x5D, 0x8D,
0x20, 0x02, 0xA9, 0x5B, 0x8D, 0x21, 0x02, 0x00]

File.open("./Diskette",'wb'){|fh|
	fh.write(program.pack('C*'))
}
I might make this the boot screen in the future. ;)
- Joby
inXile's ruthless Leader of Scripters
slitherrr
Initiate
Posts: 16
Joined: September 2nd, 2014, 4:02 pm
badge image for 5p2s6t.png
badge image for ijw2ib.png

A very quick Google result: http://6502.org/tutorials/
User avatar
Drool
Forum Moderator
Posts: 10185
Joined: March 17th, 2012, 9:58 pm
badge image for 5p2s6t.png
badge image for ijw2ib.png

Flashbacks to rooting around in the disks with the FASTBOOT cartridge's editor program...

And ruining more than one game by tweaking the wrong thing >_>
Alwa nasci korliri das.
Tangaroa
Scholar
Posts: 116
Joined: December 1st, 2013, 9:10 am

Joby wrote:The game is afoot...
I might make this the boot screen in the future. ;)
Screenshot

EDIT: Right, Apple II. Just a hair too young I guess to get the joke immediately.
Joby
Scholar
Posts: 129
Joined: February 23rd, 2012, 9:21 am
badge image for 4o80c0.png

Tangaroa wrote: Screenshot

EDIT: Right, Apple II. Just a hair too young I guess to get the joke immediately.
Haha! Yeah... my first computer was an Apple ][+ so it's a bit of a tribute.

But, let's be honest. Kids these days and all their gigahertz and giga this and giga that, twerking while playing their co-op first-person shooter on their phone. I dare them to play Zork or Wizardry! They wouldn't last 5 minutes in a real game like we had back in the day! No Internet to Google solutions to puzzles. That was how real games were played! On real computers that had 4 colors... if that!
- Joby
inXile's ruthless Leader of Scripters
User avatar
Drool
Forum Moderator
Posts: 10185
Joined: March 17th, 2012, 9:58 pm
badge image for 5p2s6t.png
badge image for ijw2ib.png

Joby wrote: On real computers that had 4 colors... if that!
Let's hear it for the green-and-black Zeniths!
Alwa nasci korliri das.
User avatar
Woolfe
Supreme Jerk
Posts: 5894
Joined: March 22nd, 2012, 6:42 pm

Joby wrote:
Tangaroa wrote: Screenshot

EDIT: Right, Apple II. Just a hair too young I guess to get the joke immediately.
Haha! Yeah... my first computer was an Apple ][+ so it's a bit of a tribute.

But, let's be honest. Kids these days and all their gigahertz and giga this and giga that, twerking while playing their co-op first-person shooter on their phone. I dare them to play Zork or Wizardry! They wouldn't last 5 minutes in a real game like we had back in the day! No Internet to Google solutions to puzzles. That was how real games were played! On real computers that had 4 colors... if that!
See I started on a c64... Just as hard, but I was spoilt with lush 16 colours and sound from the likes of Rob Hubbard and Fred Gray

(Commando and Enigma force are still awesome. I recommend Instant Remedy's remix of Commando and Lman and Sunflower's Enigma Force)
It's not too late. Make it Eight!
User avatar
Bonechip
Initiate
Posts: 13
Joined: April 16th, 2012, 12:18 pm

Woolfe wrote:
See I started on a c64... Just as hard, but I was spoilt with lush 16 colours and sound from the likes of Rob Hubbard and Fred Gray

(Commando and Enigma force are still awesome. I recommend Instant Remedy's remix of Commando and Lman and Sunflower's Enigma Force)
I originally started on a TI99/4A, graduated to Commodore64/128, and eventually PC's.

Fun days :)
User avatar
Gizmo
Grandmaster
Posts: 3863
Joined: March 6th, 2012, 6:25 am
badge image for 5p2s6t.png
badge image for 3rz1is.png
badge image for ijw2ib.png

Woolfe wrote:See I started on a c64... Just as hard, but I was spoilt with lush 16 colours and sound from the likes of Rob Hubbard and Fred Gray

(Commando and Enigma force are still awesome. I recommend Instant Remedy's remix of Commando and Lman and Sunflower's Enigma Force)
There were even some games that ran on four color CGA hardware, that exploited screen artifacts on CRT monitors to simulate more than four colors. I had a commodore at one point, but mostly had a coco2/3 and then Tandys. (Back in the days of $200 floppy drives that stored 180kb.)
User avatar
Drool
Forum Moderator
Posts: 10185
Joined: March 17th, 2012, 9:58 pm
badge image for 5p2s6t.png
badge image for ijw2ib.png

So, the completed programs will be accessible in-game via a terminal in the Ranger Center? In Arizona? Will there be another terminal in LA, or will our only access point be locked out 40% through the game?
Alwa nasci korliri das.
Joby
Scholar
Posts: 129
Joined: February 23rd, 2012, 9:21 am
badge image for 4o80c0.png

Drool wrote:So, the completed programs will be accessible in-game via a terminal in the Ranger Center? In Arizona? Will there be another terminal in LA, or will our only access point be locked out 40% through the game?
There's also a terminal at the end of the game. But in general, if you want to play with programs/programming, you should keep a save handy.
- Joby
inXile's ruthless Leader of Scripters
User avatar
Wile
Adventurer
Posts: 527
Joined: April 9th, 2012, 1:40 am
badge image for 5p2s6t.png
badge image for 3rz1is.png
badge image for ijw2ib.png

This is really interesting! Too bad, that assembly code makes my head hurt, as I am spoiled by modern programming languages and how much easier they are to read compared to assembly... :( I suppose this could be good excuse to learn assembly, though!
Post Reply

Return to “The Ranger Citadel 6502 Computer”