Click here to Skip to main content
15,892,005 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Some people will never understand Pin
PIEBALDconsult6-Dec-16 7:12
mvePIEBALDconsult6-Dec-16 7:12 
GeneralRe: Some people will never understand Pin
Kirill Illenseer6-Dec-16 20:58
Kirill Illenseer6-Dec-16 20:58 
GeneralRe: Some people will never understand Pin
Nelek6-Dec-16 21:39
protectorNelek6-Dec-16 21:39 
GeneralRe: Some people will never understand Pin
Kirill Illenseer12-Dec-16 21:23
Kirill Illenseer12-Dec-16 21:23 
GeneralRe: Some people will never understand Pin
Ygnaiih7-Dec-16 0:32
professionalYgnaiih7-Dec-16 0:32 
GeneralRe: Some people will never understand Pin
den2k887-Dec-16 0:40
professionalden2k887-Dec-16 0:40 
GeneralRe: Some people will never understand Pin
MikeTheFid7-Dec-16 4:37
MikeTheFid7-Dec-16 4:37 
GeneralHPOTD (hexadecimal pattern of the day) Pin
CDP18025-Dec-16 23:29
CDP18025-Dec-16 23:29 
Not long ago we had a question here, what interview questions concerning hexadecimal notation and logical operators have to do with 'real world programs'.

I must admit, I was a little shocked. In my 'real world' that's something so basic, it's not worth mentioning. It was, in fact, the first thing I ever did on a computer and last weekend I started to write some assembly code for my old computer.

It's going to be a game, a remake of a badly programmed game that fell into my hands 35 years ago. Not only did it use preposterous 8k memory, it also made no good use of the already spartan graphics.

Here are two of my main antagonists as bit patterns. Each pattern is 16 bits wide and each bit encodes a pixel directly. These pixels are twice as wide as they are high and (obviously) monochrome.

Can you take the hexadecimal patterns, draw them on a piece of paper and (hopefully) tell me what they are supposed to represent?

First pattern:
01 00
07 C0
1B B0 < Edit: Inserted those two bytes as improvement!
1A B0
39 38
40 04
80 02
80 02
80 02

Second pattern:

84 02 81 02
83 82
4F E4
3E F8
07 C0

I made the patterns without writing them down, so please tell me any errors or improvements you can find. And the logical operations will be needed to place them into the video buffer at any place I want to show them.
The language is JavaScript. that of Mordor, which I will not utter here

This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.

"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."

If software development were a circus, we would all be the clowns.


modified 6-Dec-16 7:04am.

GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
OriginalGriff5-Dec-16 23:42
mveOriginalGriff5-Dec-16 23:42 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
CDP18025-Dec-16 23:49
CDP18025-Dec-16 23:49 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
OriginalGriff5-Dec-16 23:55
mveOriginalGriff5-Dec-16 23:55 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
CDP18026-Dec-16 0:14
CDP18026-Dec-16 0:14 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
OriginalGriff6-Dec-16 0:23
mveOriginalGriff6-Dec-16 0:23 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
CDP18026-Dec-16 0:27
CDP18026-Dec-16 0:27 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
OriginalGriff6-Dec-16 0:45
mveOriginalGriff6-Dec-16 0:45 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
CDP18026-Dec-16 1:14
CDP18026-Dec-16 1:14 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
OriginalGriff6-Dec-16 1:38
mveOriginalGriff6-Dec-16 1:38 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
CDP18026-Dec-16 2:34
CDP18026-Dec-16 2:34 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
Mark Parity5-Dec-16 23:51
Mark Parity5-Dec-16 23:51 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
CDP18026-Dec-16 0:02
CDP18026-Dec-16 0:02 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
F-ES Sitecore5-Dec-16 23:57
professionalF-ES Sitecore5-Dec-16 23:57 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
CDP18026-Dec-16 0:17
CDP18026-Dec-16 0:17 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
Roger Wright6-Dec-16 6:36
professionalRoger Wright6-Dec-16 6:36 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
Worried Brown Eyes6-Dec-16 0:18
Worried Brown Eyes6-Dec-16 0:18 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
CDP18026-Dec-16 0:22
CDP18026-Dec-16 0:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.