OpenCores
URL https://opencores.org/ocsvn/ssbcc/ssbcc/trunk

Subversion Repositories ssbcc

[/] [ssbcc/] [trunk/] [example/] [GameOfLife/] [hdl/] [uc/] [memory.s] - Blame information for rev 14

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 sinclairrf
; ram.s
2
; Copyright 2012-2013, Sinclair R.F., Inc.
3
;
4
; RAM definition for Conway's Game of Life, SSBCC.9x8 implementation
5
 
6
.memory RAM ram
7
; commanded mode
8
.variable       cmd_frame_waits         0       ; number of frames between updates
9
.variable       cmd_stop                0       ; don't propagate the state
10
.variable       cmd_wrap                0       ; wrap at the top/bottom and left/right boundaries
11
; internal status
12
.variable       cnt_frame_waits         0       ; current count against cmd_frame_waits
13
.variable       sel_rd                  0       ; index for ping pong buffer being displayed
14
; buffered game state for computing each line of output
15
.variable       line_prev               0*${N_MEM_WORDS+2}      ; values from previous line
16
.variable       line_curr               0*${N_MEM_WORDS+2}      ; values from current line
17
.variable       line_next               0*${N_MEM_WORDS+2}      ; values from next line
18
 
19
;
20
; Define ROM "nBitsSet".
21
;
22
 
23
.memory ROM nBitsSet
24
; Translate the values 0 through 7 inclusive into the number of ones in the value.
25
.variable       bit_counts              0 1 1 2 1 2 2 3

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.