HNHacker News
TopNewBestAskShowJobs

jcmeyrignac

191 karma · joined December 9, 2017

submissionscomments
jcmeyrignac··on Learning BASIC Like It's 1983
Yes, I had a similar manual (I'm french too).

The problem is that the manual contained only the set of instructions, without any explanation. My Aha! was understanding how it worked.

I did write a couple of games on Oric/Atmos, but quickly changed to Atari ST (I had one of the first 520ST with its developer manual).

jcmeyrignac··on Learning BASIC Like It's 1983
I'll share my own experience, since I started computer programming in 1982 (on a 6502 based computer called Oric-1), then worked in the game industry for 18 years.

What I remember from these early times:

1) we had only one television at home, so typing programs required to have access to the TV. This is why I spend a lot of time analyzing programs BEFORE typing them, since I didn't have a lot of time to type them. This probably taught me a lot !

2) I always wanted to improve the programs I typed, so I spent a lot of time optimizing them. This also proved useful later ;-)

3) Some programs included mysterious hexadecimal characters. I tried to find some documentation about that. It was difficult, because the information was scarce, and there was no Internet. One day, I got an Aha!, and I discovered 6502 that day. This was useful, since I did write quite a lot of games in 6502, and it got me my first job in the game industry in 1985.

4) In France, there was a beautiful newspaper called Hebdogiciel. It contained programs for all kinds of computers. I tried to convert these programs to my computer, and this also gave me pointers to handle conversion between Basics. My first job was about converting Basic programs between various computers (Thomson TO7 <> Exelvision).

5) everything was so new and exciting ! Nowadays, I don't feel this kind of excitement. Everything is so easy to put in place. At the time, we only had 48 to 64 kilobytes of memory. Everything was a challenge. The computers were not designed to write games, but games were doable.

jcmeyrignac··on 6502 arithmetic and why it is terrible
And you can extend the decrement for 32 bits as follows:

    lda a+0
    bne .3
    lda a+1
    bne .2
    lda a+2
    bne .1
    dec a+3
  .1:
   dec a+2
  .2:
   dec a+1
  .3:
   dec a+0
jcmeyrignac··on Ask HN: What is the best AI powered product demo you have experienced?
https://www.deepl.com/translator
jcmeyrignac··on The Dreams of an Inventor in 1420
Copy of the article: http://archive.is/gj3sf
jcmeyrignac··on The Woz Wonderbook (1977) [pdf]
In fact, I was working on another computer, called "Oric 1", and tried to optimize a disassembler.

At this time, I spent several months optimizing the Basic ROM from Microsoft, but I never released anything.

jcmeyrignac··on The Woz Wonderbook (1977) [pdf]
I remember having found an optimization in the disassembler 30 years ago, and I was so proud of me.

It's on page 51, we can replace:

  LSR
  BCC EVEN
  LSR 
  BCS ERR
  CMP #$22
  BEQ ERR
  AND #$7
  ORA #$80
with:

  LSR
  BCC EVEN
  ROR 
  BCS ERR
  CMP #$A2
  BEQ ERR
  AND #$87
saving 2 bytes !
← PreviousPage 3 of 3