Diskette

Topics covering the 6502 emulator in Ranger Citadel: tutorials, specs, source code and share your work!

Moderator: Ranger Team Alpha

User avatar
Bonechip
Initiate
Posts: 13
Joined: April 16th, 2012, 12:18 pm
Location: Houston
Contact:

Diskette

Post by Bonechip » August 29th, 2014, 6:22 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: 9466
Joined: March 17th, 2012, 9:58 pm
Location: Under Tenebrosia, doing shots with Sceadu.

Re: Diskette

Post by Drool » August 29th, 2014, 8:32 pm

That... that is awesome.
Alwa nasci korliri das.

User avatar
Crosmando
Supreme Jerk
Posts: 5127
Joined: January 3rd, 2013, 8:48 am

Re: Diskette

Post by Crosmando » August 29th, 2014, 11:39 pm

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

Re: Diskette

Post by ShaneD53 » August 30th, 2014, 12:18 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
Location: In the doughnut-mobile chasing bad guys while cursing on the radio

Re: Diskette

Post by sumbitch » August 30th, 2014, 4:13 am

:shock: Awesome!
Where you at, you sumbitch?!

Tangaroa
Scholar
Posts: 116
Joined: December 1st, 2013, 9:10 am

Re: Diskette

Post by Tangaroa » August 30th, 2014, 9:51 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

Re: Diskette

Post by The Tallest » August 31st, 2014, 5:38 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

Re: Diskette

Post by tuluse » August 31st, 2014, 8:35 pm

hah, great find!

User avatar
Joby
Developer
Posts: 129
Joined: February 23rd, 2012, 9:21 am
Location: Ground Zero - inXile
Contact:

Re: Diskette

Post by Joby » September 2nd, 2014, 5:27 pm

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

Re: Diskette

Post by slitherrr » September 2nd, 2014, 6:06 pm

A very quick Google result: http://6502.org/tutorials/

User avatar
Drool
Forum Moderator
Posts: 9466
Joined: March 17th, 2012, 9:58 pm
Location: Under Tenebrosia, doing shots with Sceadu.

Re: Diskette

Post by Drool » September 2nd, 2014, 8:47 pm

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

Re: Diskette

Post by Tangaroa » September 5th, 2014, 8:38 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.

User avatar
Joby
Developer
Posts: 129
Joined: February 23rd, 2012, 9:21 am
Location: Ground Zero - inXile
Contact:

Re: Diskette

Post by Joby » September 5th, 2014, 11:44 am

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: 9466
Joined: March 17th, 2012, 9:58 pm
Location: Under Tenebrosia, doing shots with Sceadu.

Re: Diskette

Post by Drool » September 5th, 2014, 9:28 pm

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: 5790
Joined: March 22nd, 2012, 6:42 pm

Re: Diskette

Post by Woolfe » September 6th, 2014, 6:02 am

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
Location: Houston
Contact:

Re: Diskette

Post by Bonechip » September 6th, 2014, 10:28 am

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: 3558
Joined: March 6th, 2012, 6:25 am

Re: Diskette

Post by Gizmo » September 6th, 2014, 11:06 am

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: 9466
Joined: March 17th, 2012, 9:58 pm
Location: Under Tenebrosia, doing shots with Sceadu.

Re: Diskette

Post by Drool » September 6th, 2014, 9:35 pm

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.

User avatar
Joby
Developer
Posts: 129
Joined: February 23rd, 2012, 9:21 am
Location: Ground Zero - inXile
Contact:

Re: Diskette

Post by Joby » September 8th, 2014, 9:58 am

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
Location: Finland

Re: Diskette

Post by Wile » September 17th, 2014, 9:09 am

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

Who is online

Users browsing this forum: No registered users and 1 guest