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

Subversion Repositories ssbcc

[/] [ssbcc/] [trunk/] [core/] [9x8/] [tb/] [arch/] [init-2rom.awk] - Blame information for rev 10

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

Line No. Rev Author Line
1 2 sinclairrf
# Copyright 2013, Sinclair R.F., Inc.
2
#
3
# Initialize the ROMs with gray-coded values and slightly altered gray-coded
4
# values.
5
 
6
BEGIN {
7
  print ".memory ROM rom_z";
8
  print ".variable z";
9
  for (i=0; i<SIZE_Z; ++i)
10
    printf("  0x%02X\n",xor(i,i/2));
11
  print ".memory ROM rom_y";
12
  print ".variable y";
13
  for (i=0; i<SIZE_Y; ++i)
14
    printf("  0x%02X\n",xor(0x5A,xor(i,i/2)));
15
}

powered by: WebSVN 2.1.0

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