Skip to content

Commit

Permalink
Better coordinates for mandel.asm
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd-ulmann committed Aug 31, 2015
1 parent d5aeaf8 commit ab11781
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions demos/mandel.asm
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
.ORG 0x0000
.ORG 0x8000
;
#undef FPGA
#define POINTER R12
;
#include "../monitor/sysdef.asm"
MOVE IO$BASE, SP
;
DIVERGENT .EQU 0x0400 ; Constant for divergence test
X_START .EQU -0x0200 ; -512 = - 2 * scale with scale = 256
X_END .EQU 0x0080 ; +128
X_END .EQU 0x0100 ; +128
X_STEP .EQU 0x000A ; 10
Y_START .EQU -0x0100 ; -256
Y_END .EQU 0x0100 ; 256
Y_START .EQU -0x0180 ; -256
Y_END .EQU 0x0180 ; 256
Y_STEP .EQU 0x0019 ; 25
ITERATION .EQU 0x001A ; Number of iterations
;
Expand Down
3 changes: 2 additions & 1 deletion test_programs/regbank.asm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
;
; done by sy2002 on August 2015

#define FPGA
IO$TIL_BASE .EQU 0xFF10 ; Address of TIL-display

; about 10.000.000 cycles are needed to delay 1 sec
Expand All @@ -31,7 +32,7 @@ VAR_DIFF .EQU 0x8000 ; variable in RAM to store the
; difference between a register
; value and the expected value

.ORG 0x0000
.ORG 0x8400

MOVE STACK_TOP, R13 ; setup stack pointer

Expand Down

0 comments on commit ab11781

Please sign in to comment.