| 1 |
26 |
hosseinami |
0000_0000_0000_0000_0000_0000_0000_0111 //000 00 000007 LDA acc <- (7) start testing the dma Registers
|
| 2 |
|
|
0000_0001_0000_1000_0000_0000_0000_0001 //001 01 080001 STO (80001) <- acc
|
| 3 |
|
|
0000_0000_0000_0000_0000_0000_0000_1000 //002 00 000008 LDA acc <- (8)
|
| 4 |
|
|
0000_0001_0000_1000_0000_0000_0000_0010 //003 01 080002 STO (80002) <- acc
|
| 5 |
|
|
0000_0000_0000_0000_0000_0000_0000_1001 //004 00 000009 LDA acc <- (9)
|
| 6 |
|
|
0000_0001_0000_1000_0000_0000_0000_0011 //005 01 080003 STO (80003) <- acc
|
| 7 |
|
|
0000_0100_0000_0000_0000_0000_0000_1010 //006 04 00000a JMP (00A)
|
| 8 |
|
|
0000_0000_0000_0000_0000_0000_0001_0000 //007 Value is 10
|
| 9 |
|
|
0000_0000_0000_0000_0000_0000_0001_0001 //008 Value is 11
|
| 10 |
|
|
0000_0000_0000_0000_0000_0000_0001_0010 //009 Value is 12
|
| 11 |
|
|
0000_0000_0000_1000_0000_0000_0000_0001 //00a 01 080001 LDA acc <- (80001)
|
| 12 |
|
|
0000_0000_0000_1000_0000_0000_0000_0010 //00b 01 080002 LDA acc <- (80002)
|
| 13 |
|
|
0000_0000_0000_1000_0000_0000_0000_0011 //00c 01 080003 LDA acc <- (80003) end testing the dma Registers
|
| 14 |
|
|
0000_0000_0000_0000_0000_0000_0001_0100 //00d 00 000014 LDA acc <- (14) start testing the Flash Registers
|
| 15 |
|
|
0000_0001_0000_1000_0000_0000_0000_1000 //00e 01 080008 STO (80008) <- acc
|
| 16 |
|
|
0000_0000_0000_0000_0000_0000_0001_0101 //00f 00 000015 LDA acc <- (15)
|
| 17 |
|
|
0000_0001_0000_1000_0000_0000_0000_1001 //010 01 080009 STO (80009) <- acc
|
| 18 |
|
|
0000_0000_0000_0000_0000_0000_0001_0110 //011 00 000016 LDA acc <- (16)
|
| 19 |
|
|
0000_0001_0000_1000_0000_0000_0000_1010 //012 01 08000a STO (8000a) <- acc
|
| 20 |
|
|
0000_0100_0000_0000_0000_0000_0001_0111 //013 04 000017 JMP (017)
|
| 21 |
|
|
0000_0000_0000_0000_0000_0000_0001_0011 //014 Value is 13
|
| 22 |
|
|
0000_0000_0000_0000_0000_0000_0001_0100 //015 Value is 14
|
| 23 |
|
|
0000_0000_0000_0000_0000_0000_0001_0101 //016 Value is 15
|
| 24 |
|
|
0000_0000_0000_1000_0000_0000_0000_1000 //017 01 080008 LDA acc <- (80008)
|
| 25 |
|
|
0000_0000_0000_1000_0000_0000_0000_1001 //018 01 080009 LDA acc <- (80009)
|
| 26 |
|
|
0000_0000_0000_1000_0000_0000_0000_1010 //019 01 08000a LDA acc <- (8000a) end testing the Flash Registers
|
| 27 |
|
|
0000_0000_0000_0000_0000_0000_0010_0001 //01a 00 000021 LDA acc <- (21) start testing the D-Cache Registers
|
| 28 |
|
|
0000_0001_0000_1000_0000_0000_0001_0000 //01b 01 080010 STO (80010) <- acc
|
| 29 |
|
|
0000_0000_0000_0000_0000_0000_0010_0010 //01c 00 000022 LDA acc <- (22)
|
| 30 |
|
|
0000_0001_0000_1000_0000_0000_0001_0001 //01d 01 080011 STO (80011) <- acc
|
| 31 |
|
|
0000_0000_0000_0000_0000_0000_0010_0011 //01e 00 000023 LDA acc <- (23)
|
| 32 |
|
|
0000_0001_0000_1000_0000_0000_0001_0010 //01f 01 080012 STO (80012) <- acc
|
| 33 |
|
|
0000_0100_0000_0000_0000_0000_0010_0100 //020 04 000024 JMP (024)
|
| 34 |
|
|
0000_0000_0000_0000_0000_0000_0001_0110 //021 Value is 16
|
| 35 |
|
|
0000_0000_0000_0000_0000_0000_0001_0111 //022 Value is 17
|
| 36 |
|
|
0000_0000_0000_0000_0000_0000_0001_1000 //023 Value is 18
|
| 37 |
|
|
0000_0000_0000_1000_0000_0000_0001_0000 //024 01 080010 LDA acc <- (80010)
|
| 38 |
|
|
0000_0000_0000_1000_0000_0000_0001_0001 //025 01 080011 LDA acc <- (80011)
|
| 39 |
|
|
0000_0000_0000_1000_0000_0000_0001_0010 //026 01 080012 LDA acc <- (80012) end testing the D-Cache Registers
|
| 40 |
|
|
0000_0000_0000_0000_0000_0000_0010_1110 //027 00 00002e LDA acc <- (2e) start testing the i-Cache Registers
|
| 41 |
|
|
0000_0001_0000_1000_0000_0000_0001_1001 //028 01 080019 STO (80019) <- acc
|
| 42 |
|
|
0000_0000_0000_0000_0000_0000_0010_1111 //029 00 00002f LDA acc <- (2f)
|
| 43 |
|
|
0000_0001_0000_1000_0000_0000_0001_1010 //02a 01 08001A STO (8001A) <- acc
|
| 44 |
|
|
0000_0000_0000_0000_0000_0000_0011_0000 //02b 00 000030 LDA acc <- (30)
|
| 45 |
|
|
0000_0001_0000_1000_0000_0000_0001_1011 //02c 01 08001B STO (8001B) <- acc
|
| 46 |
|
|
0000_0100_0000_0000_0000_0000_0011_0001 //02d 04 000031 JMP (031)
|
| 47 |
|
|
0000_0000_0000_0000_0000_0000_0001_1001 //02e Value is 19
|
| 48 |
|
|
0000_0000_0000_0000_0000_0000_0001_1010 //02f Value is 1A
|
| 49 |
|
|
0000_0000_0000_0000_0000_0000_0001_1011 //030 Value is 1B
|
| 50 |
|
|
0000_0000_0000_1000_0000_0000_0001_1001 //031 01 080019 LDA acc <- (80019)
|
| 51 |
|
|
0000_0000_0000_1000_0000_0000_0001_1010 //032 01 08001A LDA acc <- (8001A)
|
| 52 |
|
|
0000_0000_0000_1000_0000_0000_0001_1011 //033 01 08001B LDA acc <- (8001B) end testing the i-Cache Registers
|
| 53 |
|
|
0000_0000_0000_0000_0000_0000_0011_1001 //034 00 000039 LDA acc <- (39) start testing the Timer Registers
|
| 54 |
|
|
0000_0001_0000_1000_0000_0000_0010_0001 //035 01 080021 STO (80021) <- acc
|
| 55 |
|
|
0000_0000_0000_0000_0000_0000_0011_1010 //036 00 00003a LDA acc <- (3a)
|
| 56 |
|
|
0000_0001_0000_1000_0000_0000_0010_0010 //037 01 080022 STO (80022) <- acc
|
| 57 |
|
|
0000_0100_0000_0000_0000_0000_0011_1011 //038 04 00003b JMP (03b)
|
| 58 |
|
|
0000_0000_0000_0000_0000_0000_0001_1100 //039 Value is 1C
|
| 59 |
|
|
0000_0000_0000_0000_0000_0000_0001_1101 //03a Value is 1D
|
| 60 |
|
|
0000_0000_0000_1000_0000_0000_0010_0001 //03b 01 080021 LDA acc <- (80021)
|
| 61 |
|
|
0000_0000_0000_1000_0000_0000_0010_0010 //03c 01 080022 LDA acc <- (80022) end testing the Timer Registers
|
| 62 |
|
|
0000_0000_0000_0000_0000_0000_0100_0010 //03d 00 000042 LDA acc <- (42) start testing the UART Registers
|
| 63 |
|
|
0000_0001_0000_1000_0000_0000_0010_1010 //03e 01 08002A STO (8002A) <- acc
|
| 64 |
|
|
0000_0000_0000_0000_0000_0000_0100_0011 //03f 00 000043 LDA acc <- (43)
|
| 65 |
|
|
0000_0001_0000_1000_0000_0000_0010_1011 //040 01 08002B STO (8002B) <- acc
|
| 66 |
|
|
0000_0100_0000_0000_0000_0000_0100_0100 //041 04 000044 JMP (044)
|
| 67 |
|
|
0000_0000_0000_0000_0000_0000_0001_1110 //042 Value is 1E
|
| 68 |
|
|
0000_0000_0000_0000_0000_0000_0001_1111 //043 Value is 1F
|
| 69 |
|
|
0000_0000_0000_1000_0000_0000_0010_1010 //044 01 08002A LDA acc <- (8002A)
|
| 70 |
|
|
0000_0000_0000_1000_0000_0000_0010_1011 //045 01 08002B LDA acc <- (8002B) end testing the UART Registers
|
| 71 |
|
|
0000_0111_0000_0000_0000_0000_0000_0000 //046 07 000000 STP STOP
|
| 72 |
|
|
|
| 73 |
|
|
/*********************************************************
|
| 74 |
|
|
* This program developed by Hossein Amidi (C) May 2002 *
|
| 75 |
|
|
* It's the Machine Language with Assembly Comment on the*
|
| 76 |
|
|
* side for users to trace each instructions back to the *
|
| 77 |
|
|
* RISC CPU. *
|
| 78 |
|
|
* This CPU Architecture uses a 32-bit Instructions with *
|
| 79 |
|
|
* 256 Opcode (2 ^ 8-bit) and 16MB code and data acce- *
|
| 80 |
|
|
* sibility ( 2 ^ 24-bit). Entire machine Code and data *
|
| 81 |
|
|
* will be stored in the memory space. *
|
| 82 |
|
|
* All the internal Registers for : *
|
| 83 |
|
|
* 1) DMA *
|
| 84 |
|
|
* 2) Data Cache *
|
| 85 |
|
|
* 3) Instruction Cache *
|
| 86 |
|
|
* 4) UART *
|
| 87 |
|
|
* 5) Timer *
|
| 88 |
|
|
* 6) Flash Controller *
|
| 89 |
|
|
* 7) SDRAM Controller *
|
| 90 |
|
|
* will be accessed using a memory map methodology. *
|
| 91 |
|
|
* *
|
| 92 |
|
|
* This program will test internal register for all the *
|
| 93 |
|
|
* above mentioned device's internal registers by doing *
|
| 94 |
|
|
* individual write / read to memory map locations. *
|
| 95 |
|
|
*********************************************************/
|