News for hackers. Stuff that matters.
Re:The Worst Programming Environment in the World? by Lagged2Death on Sunday September 01, 2013 @05:56PM (#6312333)
Smart American kids my age had C64s and Apple IIs. We all entered 6502 machine code into DATA statements in BASIC programs.

Yeah, but (similarly to the 'environment' that is the subject of the post) those DATA statements contained the output of some sort of tool. Nobody wrote machine code this way.

Re:The Worst Programming Environment in the World? by vidarh on Sunday September 01, 2013 @06:13PM (#6312375)
> Nobody wrote machine code this way.

I'd be careful about that claim.

It was not that unusual to "hand assemble" programs, as it was not that unusual to remember the codes. The 6502 has less than 60 documented opcodes (and quite a few undocumented ones with various weird but in some cases somewhat usable behaviour) and only a few addressing modes, and all opcodes are single byte, so knowing most or even all of them doesn't take that much exposure.

Some of those values are so ingrained that I still remember the decimal values, despite the fact that the moment I started using tools to work with assembly on the C64, it was all hex

e.g. 169 decimal is "load accumulator immediate" (LDA #[8 bit operand) on the 6502. (or A9 in hex)

Re:The Worst Programming Environment in the World? by Lagged2Death on Tuesday September 03, 2013 @02:51PM (#6322895)
It was not that unusual to "hand assemble" programs, as it was not that unusual to remember the codes.

Yeah, I grew up with 6502s, too.

You'll think I'm weaseling out here, but "hand assembly" isn't what I was talking about.

I feel the original comment implies that some people, intending to write significant machine code, sat down with BASIC and started typing in DATA statements. And I don't think that happened to any significant degree.

As in the case of the "programming environment" under discussion, machine language routines force-fed into BASIC DATA statements were the output of another tool or process -- whether assembled by hand or by machine -- and were an intermediate form that was never intended to be editable.

Re:The Worst Programming Environment in the World? by mgkimsal on Sunday September 01, 2013 @09:23PM (#6312978)
Chiming in with the others - I did. I didn't do a lot with it, but I did. Didn't even know what an assembler was - I just though everyone did it by hand.

I'd read some code that showed JMP $5000 and LDY 32 and figured people just knew that JMP was a particular byte, and LDY was a different one, and you just did it. While it did seem cumbersome, I didn't have much else to compare it to.

I wrote some small screen animation utilities (ASCII screencast recorders, essentially) and later some C128 'enhanced graphic mode' stuff, moving a pointer with a mouse. I think by that point I'd learned the C128 had a small assembler tool built in, so that made things easier.

Re:The Worst Programming Environment in the World? by gamache on Sunday September 01, 2013 @07:38PM (#6312677)
I hand-assembled machine code for the 6502 for a couple of years in my youth.

I was 12, couldn't afford an assembler, and my school wouldn't pay for one. I wasn't exactly writing VisiCalc, so a notebook and a pencil were plenty good enough.

Re:The Worst Programming Environment in the World? by CmdrKrool on Sunday September 01, 2013 @11:51PM (#6313382)
You've been contradicted a number of times now so sorry to pile on but here's a nice webpage about a classic videogame (in the UK in the 80s, at least) with an example halfway down the page of (literally) hand-written/assembled code: http://sandywhite.co.uk/fun/ants/
Re:The Worst Programming Environment in the World? by jloughry on Sunday September 01, 2013 @10:35PM (#6313189)
I can't express how startled I was when one lone teacher (thanks, Professor Nutt!) taught me how simple an assembler was to write, that the inner workings of a CPU can be understood by mortals, and bootstrapping a monitor and language interpreter atop bare metal is a thing you can do.
Re:The Worst Programming Environment in the World? by cabalamat on Sunday September 01, 2013 @07:12PM (#6312591)
> Nobody wrote machine code this way.

Not true. I personally did in Z80.

Re:The Worst Programming Environment in the World? by cunac on Sunday September 01, 2013 @09:37PM (#6313023)
actually I wrote 6502 and Z80 with opcodes

also if you look up for http://en.wikipedia.org/wiki/KIM-1 you will see how I entered code, all with calculating jumps and branches in head. It is actually fun exercise