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

Subversion Repositories ssbcc

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

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
  print ".memory ROM rom_x";
16
  print ".variable x";
17
  for (i=0; i<SIZE_X; ++i)
18
    printf("  0x%02X\n",xor(0x69,xor(i,i/2)));
19
  print ".memory ROM rom_w";
20
  print ".variable w";
21
  for (i=0; i<SIZE_W; ++i)
22
    printf("  0x%02X\n",xor(0x3C,xor(i,i/2)));
23
}

powered by: WebSVN 2.1.0

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