?

Log in

I am a Moron. - The Desian Universe
Links Home / GitHub January 2017
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
 
 
 
deskitty
deskitty
Des
Thu, Jun. 12th, 2003 05:09 pm
I am a Moron.

What's wrong with this code?


;;;;;;;;;;;;;;;;;;;;;
;; Prints the life board pointed to by A0 to STDOUT.
lifeout:
        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
nextlife:
        jsr     strout
        jsr     newline
        adda.l  #32,        A0
        addi.l  #1,         D1
        cmpi.l  #32,        D1
        blt     nextlife
        
        movem.l A0/D0-D1,   (SP)+
        rts



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

Current Mood: aggravated aggravated
Current Music: "Communication (Kimball Collins Mix)" by Armin van Buuren ( Massinova)

CommentReplyShare