Hacker News new | ask | show | jobs
by NewAccnt 4823 days ago
Exact same experience here. QBASIC allowed you to put ASM code in line with BASIC, like so.

  y=199  
  x=319  
  c=15  
  def seg = &ha000 + (&h14 * y)  
  poke x, c
Of course, functions like CIRCLE were already much faster since the entire function was already in ASM, instead of having to go in and out of the interpreter for each pixel. You'd wrap the above code in a SUB routine and replace all your PSETs with it. I even coded my own sprite maker that used the mouse in a similar manner and made a pretty impressive looking Mario clone with the appropriate functions I learned in math class. Pythagorean theorem was very useful when working with grids. I didn't understand why everyone wasn't doing the same thing and why everyone hated math.

Imagine the teachers surprise when on the first day everyone is learning FOR loops and I'm making a RND bump map with directional lighting. This was 1997 so we were still using Yahoo to look up the ASM offset codes, which worked just fine, you'd just have to be good at making your queries or you'd have to dig through a couple of pages of results.