07 March 2012, 17:46 | #1 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,658
|
Pixel coding
[ Show youtube player ] |
07 March 2012, 18:43 | #2 |
Registered User
Join Date: May 2006
Location: Kilmacolm
Age: 46
Posts: 632
|
Wait . . . what? Is he using RGB values as mnemonics for x86 instructions?!
Or is this fake? |
07 March 2012, 19:49 | #3 |
Registered User
Join Date: Jan 2011
Location: France
Age: 52
Posts: 507
|
fake
|
07 March 2012, 19:50 | #4 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,658
|
He saves as RAW so he is writing the data straight to the executable. I guess this would be like machine coding, but writing with decimal instead of hex.
If you think it's "fake", then prove it is fake, otherwise, you're not making any favours to your point |
07 March 2012, 20:00 | #5 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,865
|
|
07 March 2012, 20:23 | #6 |
Registered User
Join Date: Oct 2009
Location: Salem, OR
Posts: 1,770
|
I would think it might be more likely that he wrote the tiny program first.
Then loaded it as a RAW image. When he saw what it looked like, he was able to "recreate" it by hand, save it and instant demo! Pretty kual... desiv |
07 March 2012, 20:39 | #7 |
Zone Friend
Join Date: Nov 2005
Location: Italy
Posts: 140
|
Save this image in RAW mode and rename it with .com extension
Test pixel01.com in DOSBox |
07 March 2012, 20:43 | #8 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,658
|
No thanks
I would believe that if you know to do machine code, it's easy. You just make a palette with the values you need. |
07 March 2012, 21:57 | #9 |
Registered User
Join Date: Aug 2006
Location: Scunthorpe/United Kingdom
Posts: 2,111
|
Looks like he's only showing half the screen, where the other image resides (which is the same .com program loaded as a RAW image). With that image out of view, you can just use the colour picker to copy the colours across to the correct pixels. Simple when you know how ;-)
He's almost certainly not choosing his colours from prior knowledge of which machine instruction equals which value (or combination of values) - it's happening far too quickly for that. D. |
07 March 2012, 22:20 | #10 | |
Registered User
Join Date: May 2006
Location: Kilmacolm
Age: 46
Posts: 632
|
Quote:
Aye, I think you're right. The mouse disappears off to the right and the RGB sliders all snap suddenly to a new value. I call semi-fake since the description says simply "open photoshop, draw some pixels" I'm still impressed though, cool effect. The mental gymnastics performed by coders never ceases to amaze me. Makes me wonder about someone actually being able to program "assembly" that doesn't need assembled using colours instead of mnemonic. Like some kind of savant ability to interpret a bitmap this way. I wonder if someone could design a combination of machine code and color encoding that would make correct syntax and good program structure look pretty. I'll take my pills now. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
1-1 pixel perfect screenshots | menace | support.WinUAE | 26 | 10 July 2016 21:33 |
Ateobus and pixel 64 | attila06 | support.Hardware | 9 | 23 January 2012 21:15 |
Crayon Pixel Art | Shoonay | Nostalgia & memories | 9 | 26 February 2009 12:59 |
Setting up the AteoBus and Pixel 64 | Smiley | support.Hardware | 4 | 14 June 2006 10:39 |
'detect pixel format' | Melroc | support.WinUAE | 2 | 09 December 2003 16:03 |
|
|