Des (deskitty) wrote,

  • Mood:
  • Music:

I am a Moron.

What's wrong with this code?

;; Prints the life board pointed to by A0 to STDOUT.
        movem.l A0/D0-D1,   -(SP)
        ;; We're printing 32 characters at a time 
        move.l  #32,        D0
        ;; We're at row 'n'
        move.l  #1,         D1

        ;; Print the grid, row by row; 32 rows
        jsr     strout
        jsr     newline
        adda.l  #32,        A0
        addi.l  #1,         D1
        cmpi.l  #32,        D1
        blt     nextlife
        movem.l A0/D0-D1,   (SP)+

My last two 215 labs were fscked-up because of this, and I have a final in this class in just under two hours...

5 points and a cookie to whoever gets the answer.

-- Des

 17:09:04 up 20:29,  1 user,  load average: 0.27, 0.20, 0.82

  • (no subject)

    Well, I'm off to Dreamwidth. I hope to see you all there! Nice knowing you, LJ. It's been grand. — Des

  • A fresh start?

    So I'm thinking of moving away from LJ. Every time I glance at my ad blocker, there are an uncomfortably-large number of advertising and tracking…

  • 2012: Ramp It Up

    It’s that time of the year again -- another year has passed, and as usual, I don’t finish reflecting on it until the first 3 months of the following…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded