Skip to content
Permalink
Browse files

Added code and PDFs

  • Loading branch information...
jonasolsson500 committed Jan 15, 2019
1 parent fa2f0e0 commit 299b529dc5f03dc993450bb74d4d18e2de7dd275
@@ -0,0 +1,12 @@
; returns the absolute value of input
;
; input: d0.l = in value
; output: d0.l = absolute value of in value
;
; neg.l = 6 cycles
; branch = 10 cycles
; no branch = 8 cycles

.is_minus
neg.l d0
bmi .is_minus
@@ -0,0 +1,6 @@
wait set $2c07
rept 256
dc.w wait, $fffe
dc.w $01fe, $0000
wait set (wait+$100)&$ffff
endr
@@ -1,22 +1,3 @@


;---------------------------------------------------------------------
; returns the absolute value of input
;
; input: d0.l = in value
; output: d0.l = absolute value of in value
;
; neg.l = 6 cycles
; branch = 10 cycles
; no branch = 8 cycles
;---------------------------------------------------------------------
.is_minus
neg.l d0
bmi .is_minus

;---------------------------------------------------------------------
; This is how jump tables are formed in 68k assembly
;---------------------------------------------------------------------
draw_to_screen:
move.l #0, d0
lea.l jumptable, a0

This file was deleted.

Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 299b529

Please sign in to comment.
You can’t perform that action at this time.