Image Map Image Map
Page 20 of 21 FirstFirst ... 10161718192021 LastLast
Results 191 to 200 of 202

Thread: Tek 405x web-browser emulator

  1. #191
    Join Date
    Jun 2012
    Location
    UK - Worcester
    Posts
    3,543

    Default

    I think I am over that hurdle now to be honest (until I hit the next problem of course)...

    Dave

  2. #192
    Join Date
    Jun 2012
    Location
    UK - Worcester
    Posts
    3,543

    Default

    The microcode 'POST' (for want of a better term) is now passing the ALU and MCP board tests. It is now failing on the MAS board tests when it tries to write to and read from memory (because I haven't implemented that function yet). It is also using the internal counter that I also haven't implemented yet either...

    I have found a very useful page in the "4052_tech_data_chapter_5-6.pdf" manual on page 6-10 where it describes the microcode HALT addresses. The ALU HALT address of 001 agrees with what I have found; but the MCP HALT address is specified as 0B0 whereas it appears to be 09B with the version of the microcode ROMS I am using. I am just wondering whether the documentation and microcode are not 'in step' with each other.

    That is a pretty good attempt for the day though!

    Dave

  3. #193

    Default

    Dave,

    Outstanding progress!

    Monty

  4. #194

    Default 4052 boot microcode trace

    Quote Originally Posted by daver2 View Post
    Had another look at the 4052 microcode this evening.

    I am still getting the error around micro addresses 36, 37 and 38.

    Monty: Any chance of you using your logic analyser on one of your machines to trace the microcode through the start-up phase and the state of the Z and C flags if possible.

    My microcode goes:

    0, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, 36, 37, 38, 34, 1, 1, ...

    Something happens between micro addresses 36, 37 and 38.

    I think at 36 accumulator A is cleared to 0000 but the Z flag is not set until micro address 37.

    At 37 the Z flag is tested and if FALSE (which it isn't because it is set by this time) would cause the microcode to fail.

    The microcode at address 37 seems to perform a A-0-Borrow. A is already 0, but the borrow is set; so this will cause accumulator A to change from 0000 to FFFF.

    In my particular implementation of the 2901 bit slice ALU, this causes the C and N flags to be set on the next micro instruction.

    The microcode at address 38 then seems to 'bunk' with an error if the carry flag is set (which it is). I suspect the carry flag should be clear?

    I suspect the value in accumulator A has changed from 0000 to FFFF (i.e. from a signed value of 0 to -1) so no carry should have occurred?

    I must admit, the carry flag is particularly troubling me about what I have implemented...

    Dave
    Dave,

    Here is a microcode boot capture file from my 4052 /w v5.1 firmware, captured from some of the ALU header signals with my HP16500B logic analyzer.

    All the signals are being clocked by CPCLK-1 on pin 1 of U350 on page A2-3 of the ALU board schematics.

    Here is my hookup sheet for the 4052 ALU board header connector pinouts:

    Code:
    J207	-1   Pullup to +5V
    	-2   CE2 jumper U300,340,335,305,330
    	-3   URA10 jumper to J207 pin4 to U300...
    	-4   shorted to pin 3
    	-5   Pullup to +5V
    	-6   CE3 jumper to J207-pin5 to U300...
    	-7   GND
    
    J206	-10  BROT-0 input
    	-9   SEQ3-1 input
    	-8   SEQ2-1 input
    	-7   SEQ1-1 input
    	-6   SEQ0-1 input
    	-5   CCC4-1 input
    	-4   CCC3-1 input 
    	-3   CCC2-1 input
    	-2   CCC1-1 input
    	-1   CCC0-1 input
    
    J205	-1   TEST1BR-0 pullup to +5V
    
    	-6   CROMENA-1 with pullup to +5V
    	-9   URA-10 to U300... past J207-3/4 jumper
    	-10  CE2 on U300...
    
    J204    -1   URA8
            -2   URA9
    	-3   Disable UROM-0
    	-4   BRMUX0-1 input
    	-5   BRMUX1-1 input
    	-6   LMODE-1 input
    	-7   Disable ALUOUT-0 with pullup to +5V
    	-8   TEST0BR-0 (pullup to +5V)
    
    J203    -10  URA7
    	-9   URA6
    	-8   URA5
    	-7   URA4
    	-6   URA3
    	-5   URA2
    	-4   URA1
    	-3   URA0
    	-2   Disable URA0-10 outputs on AM2911 U245,250,350
    	-1   GND
    It looks like a match for the sequence you described, then repeats - maybe it is now testing the ROM or RAM?

    There are 2048 samples in the trace, but they are repeating.

    If you have some more or different signals you would like to see, or how to demux and get the actual memory addresses, just tell me what would be helpful.

    Monty

    Code:
    MACHINE 1   -  State Listing                                                    
    
                                                                             
    Label     URA   CC    SEQ BROT BRMUX1 BRMUX0 LMODE TSTBR1 TSTBR0 
    Base      Hex   Bin   Hex Bin  Binary Binary  Bin  Binary Binary 
    ________  ____ _____  ___ ___  ______ ______ _____ ______ ______ 
    
          0    000 00001   3    1      0      0     0      1      1
          1    002 10010   E    0      0      0     1      1      1
          2    003 11111   3    1      0      1     0      1      1
          3    004 10010   E    0      0      0     1      1      1
          4    005 11111   3    0      0      1     0      1      1
          5    006 01111   E    0      0      0     1      1      1
          6    007 11111   3    1      0      0     0      1      1
          7    008 01111   E    0      0      0     1      1      1
          8    009 11111   3    0      0      0     0      1      1
          9    00A 10000   E    0      0      0     1      1      1
         10    00B 11111   3    1      1      0     0      1      1
         11    00C 10000   E    0      0      0     1      1      1
         12    00D 11111   3    0      1      0     0      1      1
         13    00E 11111   3    1      0      0     0      1      1
         14    036 01101   3    1      0      0     0      1      1
         15    037 01101   3    1      0      0     0      1      1
         16    038 11111   3    0      0      1     0      1      1
         17    039 11111   3    1      1      0     0      1      1
         18    03A 01101   3    0      0      0     0      1      1
         19    03B 11111   3    1      0      0     0      1      1
         20    03C 11111   3    0      1      0     0      1      1
         21    03D 11111   3    1      0      1     0      1      1
         22    03E 11111   3    1      0      0     0      1      1
         23    03F 11111   E    0      0      0     1      1      1
         24    040 11111   E    0      0      0     1      1      1
         25    041 11111   E    0      0      0     0      1      1
         26    042 01000   E    0      0      0     0      1      1
         27    043 11111   3    0      0      0     0      1      1
         28    048 11111   1    1      0      0     0      1      1
         29    08C 11111   E    0      0      0     1      1      1
         30    08D 11111   E    0      0      0     1      1      1
         31    08E 11111   E    0      0      0     1      1      1
         32    08F 11111   E    0      0      0     1      1      1
         33    090 11111   E    0      0      0     1      1      1
         34    091 11111   E    0      0      0     1      1      1
         35    092 11111   E    0      0      0     0      1      1
         36    093 11111   E    0      0      0     0      1      1
         37    094 11111   E    0      0      0     0      1      1
         38    095 11111   E    0      0      0     0      1      1
         39    096 11111   E    0      0      0     0      1      1
         40    097 11111   E    0      0      0     0      1      1
         41    098 11111   E    0      0      0     0      1      1
         42    099 11111   E    0      0      0     0      1      1
         43    09A 11111   A    1      0      0     0      1      1
         44    049 11111   E    0      0      0     0      1      1
         45    04A 01000   E    0      0      0     1      1      1
         46    04B 11111   3    1      0      0     0      1      1
         47    04C 11111   1    1      0      0     0      1      1
         48    08C 11111   E    0      0      0     1      1      1
         49    08D 11111   E    0      0      0     1      1      1
         50    08E 11111   E    0      0      0     1      1      1
         51    08F 11111   E    0      0      0     1      1      1
         52    090 11111   E    0      0      0     1      1      1
         53    091 11111   E    0      0      0     1      1      1
         54    092 11111   E    0      0      0     0      1      1
         55    093 11111   E    0      0      0     0      1      1
         56    094 11111   E    0      0      0     0      1      1
         57    095 11111   E    0      0      0     0      1      1
         58    096 11111   E    0      0      0     0      1      1
         59    097 11111   E    0      0      0     0      1      1
         60    098 11111   E    0      0      0     0      1      1
         61    099 11111   E    0      0      0     0      1      1
         62    09A 11111   A    1      0      0     0      1      1
         63    04D 11111   E    0      0      0     0      1      1
         64    04E 01000   E    0      0      0     1      1      1
         65    04F 11111   3    1      0      0     0      1      1
         66    050 11111   1    1      0      0     0      1      1
         67    08C 11111   E    0      0      0     1      1      1
         68    08D 11111   E    0      0      0     1      1      1
         69    08E 11111   E    0      0      0     1      1      1
         70    08F 11111   E    0      0      0     1      1      1
         71    090 11111   E    0      0      0     1      1      1
         72    091 11111   E    0      0      0     1      1      1
         73    092 11111   E    0      0      0     0      1      1
         74    093 11111   E    0      0      0     0      1      1
         75    094 11111   E    0      0      0     0      1      1
         76    095 11111   E    0      0      0     0      1      1
         77    096 11111   E    0      0      0     0      1      1
         78    097 11111   E    0      0      0     0      1      1
         79    098 11111   E    0      0      0     0      1      1
         80    099 11111   E    0      0      0     0      1      1
         81    09A 11111   A    1      0      0     0      1      1
         82    051 11111   E    0      0      0     0      1      1
         83    052 01000   E    0      0      0     1      1      1
         84    053 11111   3    1      0      0     0      1      1
         85    054 11111   1    1      0      0     0      1      1
         86    08C 11111   E    0      0      0     1      1      1
         87    08D 11111   E    0      0      0     1      1      1
         88    08E 11111   E    0      0      0     1      1      1
         89    08F 11111   E    0      0      0     1      1      1
         90    090 11111   E    0      0      0     1      1      1
         91    091 11111   E    0      0      0     1      1      1
         92    092 11111   E    0      0      0     0      1      1
         93    093 11111   E    0      0      0     0      1      1
         94    094 11111   E    0      0      0     0      1      1
         95    095 11111   E    0      0      0     0      1      1
         96    096 11111   E    0      0      0     0      1      1
         97    097 11111   E    0      0      0     0      1      1
         98    098 11111   E    0      0      0     0      1      1
         99    099 11111   E    0      0      0     0      1      1
        100    09A 11111   A    1      0      0     0      1      1
        101    055 11111   E    0      0      0     0      1      1
        102    056 01000   E    0      0      0     1      1      1
        103    057 11111   3    1      0      0     0      1      1
        104    058 11111   1    1      0      0     0      1      1
        105    08C 11111   E    0      0      0     1      1      1
        106    08D 11111   E    0      0      0     1      1      1
        107    08E 11111   E    0      0      0     1      1      1
        108    08F 11111   E    0      0      0     1      1      1
        109    090 11111   E    0      0      0     1      1      1
        110    091 11111   E    0      0      0     1      1      1
        111    092 11111   E    0      0      0     0      1      1
        112    093 11111   E    0      0      0     0      1      1
        113    094 11111   E    0      0      0     0      1      1
        114    095 11111   E    0      0      0     0      1      1
        115    096 11111   E    0      0      0     0      1      1
        116    097 11111   E    0      0      0     0      1      1
        117    098 11111   E    0      0      0     0      1      1
        118    099 11111   E    0      0      0     0      1      1
        119    09A 11111   A    1      0      0     0      1      1
        120    059 11111   E    0      0      0     0      1      1
        121    05A 01000   E    0      0      0     1      1      1
        122    05B 11111   3    1      0      0     0      1      1
        123    05C 11010   3    1      0      0     0      1      1
        124    05D 01011   E    0      0      1     1      1      1
        125    05E 11111   3    1      0      0     0      1      1
        126    05F 10011   E    0      0      0     1      1      1
        127    060 11111   E    0      0      1     1      1      1
        128    061 01011   E    0      0      0     1      1      1
        129    062 11111   3    0      0      0     0      1      1
        130    065 10100   3    1      0      0     1      1      1
        131    066 10001   E    0      0      0     1      1      1
        132    067 11111   E    0      0      0     0      1      1
        133    068 01000   E    0      0      0     0      1      1
        134    069 01101   3    1      0      0     0      1      1
        135    06A 11111   3    1      0      1     0      1      1
        136    067 11111   E    0      0      0     0      1      1
        137    068 01000   E    0      0      0     0      1      1
        138    069 01101   3    1      0      0     0      1      1
        139    06A 11111   3    1      0      1     0      1      1
        140    067 11111   E    0      0      0     0      1      1
        141    068 01000   E    0      0      0     0      1      1
        142    069 01101   3    1      0      0     0      1      1
        143    06A 11111   3    1      0      1     0      1      1
        144    067 11111   E    0      0      0     0      1      1
        145    068 01000   E    0      0      0     0      1      1
        146    069 01101   3    1      0      0     0      1      1
        147    06A 11111   3    1      0      1     0      1      1
        148    067 11111   E    0      0      0     0      1      1
        149    068 01000   E    0      0      0     0      1      1
        150    069 01101   3    1      0      0     0      1      1
        151    06A 11111   3    1      0      1     0      1      1
        152    067 11111   E    0      0      0     0      1      1
        153    068 01000   E    0      0      0     0      1      1
        154    069 01101   3    1      0      0     0      1      1
        155    06A 11111   3    1      0      1     0      1      1
        156    067 11111   E    0      0      0     0      1      1
        157    068 01000   E    0      0      0     0      1      1
        158    069 01101   3    1      0      0     0      1      1
        159    06A 11111   3    1      0      1     0      1      1
        160    067 11111   E    0      0      0     0      1      1
        161    068 01000   E    0      0      0     0      1      1
        162    069 01101   3    1      0      0     0      1      1
        163    06A 11111   3    1      0      1     0      1      1
        164    067 11111   E    0      0      0     0      1      1
        165    068 01000   E    0      0      0     0      1      1
        166    069 01101   3    1      0      0     0      1      1
        167    06A 11111   3    1      0      1     0      1      1
        168    067 11111   E    0      0      0     0      1      1
        169    068 01000   E    0      0      0     0      1      1
        170    069 01101   3    1      0      0     0      1      1
        171    06A 11111   3    1      0      1     0      1      1
        172    067 11111   E    0      0      0     0      1      1
        173    068 01000   E    0      0      0     0      1      1
        174    069 01101   3    1      0      0     0      1      1
        175    06A 11111   3    1      0      1     0      1      1
        176    067 11111   E    0      0      0     0      1      1
        177    068 01000   E    0      0      0     0      1      1
        178    069 01101   3    1      0      0     0      1      1
        179    06A 11111   3    1      0      1     0      1      1
        180    067 11111   E    0      0      0     0      1      1
        181    068 01000   E    0      0      0     0      1      1
        182    069 01101   3    1      0      0     0      1      1
        183    06A 11111   3    1      0      1     0      1      1
        184    067 11111   E    0      0      0     0      1      1
        185    068 01000   E    0      0      0     0      1      1
        186    069 01101   3    1      0      0     0      1      1
        187    06A 11111   3    1      0      1     0      1      1
        188    067 11111   E    0      0      0     0      1      1
        189    068 01000   E    0      0      0     0      1      1
        190    069 01101   3    1      0      0     0      1      1
        191    06A 11111   3    1      0      1     0      1      1
        192    067 11111   E    0      0      0     0      1      1
        193    068 01000   E    0      0      0     0      1      1
        194    069 01101   3    1      0      0     0      1      1
        195    06A 11111   3    1      0      1     0      1      1
        196    06B 11111   E    0      0      0     1      1      1
        197    06C 11111   E    0      0      0     0      1      1
        198    06D 01000   E    0      0      0     0      1      1
        199    06E 11111   3    0      0      0     0      1      1
        200    072 11111   E    0      0      0     1      1      1
        201    073 11100   4    1      0      0     1      1      1
        202    074 11111   E    0      0      0     1      1      1
        203    075 11111   D    0      0      0     1      1      1
        204    074 11111   E    0      0      0     1      1      1
        205    075 11111   D    0      0      0     1      1      1
        206    074 11111   E    0      0      0     1      1      1
        207    075 11111   D    0      0      0     1      1      1
        208    074 11111   E    0      0      0     1      1      1
        209    075 11111   D    0      0      0     1      1      1
        210    074 11111   E    0      0      0     1      1      1
        211    075 11111   D    0      0      0     1      1      1
        212    074 11111   E    0      0      0     1      1      1
        213    075 11111   D    0      0      0     1      1      1
        214    074 11111   E    0      0      0     1      1      1
        215    075 11111   D    0      0      0     1      1      1
        216    074 11111   E    0      0      0     1      1      1
        217    075 11111   D    0      0      0     1      1      1
        218    074 11111   E    0      0      0     1      1      1
        219    075 11111   D    0      0      0     1      1      1
        220    074 11111   E    0      0      0     1      1      1
        221    075 11111   D    0      0      0     1      1      1
        222    074 11111   E    0      0      0     1      1      1
        223    075 11111   D    0      0      0     1      1      1
        224    074 11111   E    0      0      0     1      1      1
        225    075 11111   D    0      0      0     1      1      1
        226    074 11111   E    0      0      0     1      1      1
        227    075 11111   D    0      0      0     1      1      1
        228    074 11111   E    0      0      0     1      1      1
        229    075 11111   D    0      0      0     1      1      1
        230    074 11111   E    0      0      0     1      1      1
        231    075 11111   D    0      0      0     1      1      1
        232    076 11111   3    1      0      0     0      1      1
        233    077 11111   E    0      0      0     1      1      1
        234    078 11111   E    0      0      0     1      1      1
        235    079 11111   E    0      0      0     0      1      1
        236    07A 11111   E    0      0      0     1      1      1
        237    07B 11111   3    1      0      0     0      1      1
        238    07C 11111   E    0      0      0     1      1      1
        239    07D 11111   E    0      0      0     1      1      1
        240    07E 11111   E    0      0      0     1      1      1
        241    07F 11111   E    0      0      0     1      1      1
        242    080 11111   E    0      0      0     0      1      1
        243    081 11111   E    0      0      0     1      1      1
        244    082 11111   E    0      0      0     1      1      1
        245    083 01011   E    0      0      0     0      1      1
        246    084 11111   E    0      0      0     1      1      1
        247    085 11111   3    1      0      0     0      1      1
        248    086 01011   E    0      0      0     0      1      1
        249    087 11111   3    1      0      0     0      1      1
        250    07F 11111   E    0      0      0     1      1      1
        251    080 11111   E    0      0      0     0      1      1
        252    081 11111   E    0      0      0     1      1      1
        253    082 11111   E    0      0      0     1      1      1
        254    083 01011   E    0      0      0     0      1      1
        255    084 11111   E    0      0      0     1      1      1
        256    085 11111   3    1      0      0     0      1      1
        257    086 01011   E    0      0      0     0      1      1
        258    087 11111   3    1      0      0     0      1      1
        259    07F 11111   E    0      0      0     1      1      1
        260    080 11111   E    0      0      0     0      1      1
        261    081 11111   E    0      0      0     1      1      1
        262    082 11111   E    0      0      0     1      1      1
        263    083 01011   E    0      0      0     0      1      1
        264    084 11111   E    0      0      0     1      1      1
        265    085 11111   3    1      0      0     0      1      1
        266    086 01011   E    0      0      0     0      1      1
        267    087 11111   3    1      0      0     0      1      1
        268    07F 11111   E    0      0      0     1      1      1
        269    080 11111   E    0      0      0     0      1      1
        270    081 11111   E    0      0      0     1      1      1
        271    082 11111   E    0      0      0     1      1      1
        272    083 01011   E    0      0      0     0      1      1
        273    084 11111   E    0      0      0     1      1      1
        274    085 11111   3    1      0      0     0      1      1
        275    086 01011   E    0      0      0     0      1      1
        276    087 11111   3    1      0      0     0      1      1
        277    07F 11111   E    0      0      0     1      1      1
        278    080 11111   E    0      0      0     0      1      1
        279    081 11111   E    0      0      0     1      1      1
        280    082 11111   E    0      0      0     1      1      1
        281    083 01011   E    0      0      0     0      1      1
        282    084 11111   E    0      0      0     1      1      1
        283    085 11111   3    1      0      0     0      1      1
        284    086 01011   E    0      0      0     0      1      1
        285    087 11111   3    1      0      0     0      1      1
        286    07F 11111   E    0      0      0     1      1      1
        287    080 11111   E    0      0      0     0      1      1
        288    081 11111   E    0      0      0     1      1      1
        289    082 11111   E    0      0      0     1      1      1
        290    083 01011   E    0      0      0     0      1      1
        291    084 11111   E    0      0      0     1      1      1
        292    085 11111   3    1      0      0     0      1      1
        293    086 01011   E    0      0      0     0      1      1
        294    087 11111   3    1      0      0     0      1      1
        295    07F 11111   E    0      0      0     1      1      1
        296    080 11111   E    0      0      0     0      1      1
        297    081 11111   E    0      0      0     1      1      1
        298    082 11111   E    0      0      0     1      1      1
        299    083 01011   E    0      0      0     0      1      1
        300    084 11111   E    0      0      0     1      1      1
        301    085 11111   3    1      0      0     0      1      1
        302    086 01011   E    0      0      0     0      1      1
        303    087 11111   3    1      0      0     0      1      1
        304    07F 11111   E    0      0      0     1      1      1
        305    080 11111   E    0      0      0     0      1      1
        306    081 11111   E    0      0      0     1      1      1
        307    082 11111   E    0      0      0     1      1      1
        308    083 01011   E    0      0      0     0      1      1
        309    084 11111   E    0      0      0     1      1      1
        310    085 11111   3    1      0      0     0      1      1
        311    086 01011   E    0      0      0     0      1      1
        312    087 11111   3    1      0      0     0      1      1
        313    088 11111   3    1      0      0     0      1      1
        314    09C 11111   E    0      0      0     1      1      1
        315    09D 11111   E    0      0      0     1      1      1
        316    09E 11111   E    0      0      0     1      1      1
        317    09F 11111   E    0      0      0     1      1      1
        318    0A0 11111   E    0      0      0     1      1      1
        319    0A1 11111   E    0      0      0     1      1      1
        320    0A2 11111   E    0      0      0     1      1      1
        321    0A3 11111   E    0      0      0     1      1      1
        322    0A4 11111   E    0      0      0     1      1      1
        323    0A5 11111   E    0      0      0     1      1      1
        324    0A6 11000   E    0      0      0     0      1      1
        325    0A7 11111   E    0      0      0     1      1      1
        326    0A8 11111   E    0      0      0     0      1      1
        327    0A9 01000   E    0      0      0     1      1      1
        328    0AA 11111   3    1      0      0     0      1      1
        329    0B0 01000   E    0      0      0     0      1      1
        330    0B1 11111   3    1      0      0     0      1      1
        331    0B2 11111   E    0      0      0     1      1      1
        332    0B3 11111   E    0      0      0     1      1      1
        333    0B4 11111   E    0      0      0     1      1      1
        334    0B5 11111   E    0      0      0     1      1      1
        335    0B6 11111   E    0      0      0     1      1      1
        336    0B7 11111   E    0      0      0     1      1      1
        337    0B8 11100   3    1      0      0     0      1      1
        338    0B9 11111   E    0      0      0     0      1      1
        339    0BA 11111   E    0      0      0     1      1      1
        340    0BB 01000   E    0      0      0     1      1      1
        341    0BC 11111   3    1      0      0     0      1      1
        342    0B9 11111   E    0      0      0     0      1      1
        343    0BA 11111   E    0      0      0     1      1      1
        344    0BB 01000   E    0      0      0     1      1      1
        345    0BC 11111   3    1      0      0     0      1      1
        346    0B9 11111   E    0      0      0     0      1      1
        347    0BA 11111   E    0      0      0     1      1      1
        348    0BB 01000   E    0      0      0     1      1      1
        349    0BC 11111   3    1      0      0     0      1      1
        350    0B9 11111   E    0      0      0     0      1      1
        351    0BA 11111   E    0      0      0     1      1      1
        352    0BB 01000   E    0      0      0     1      1      1
        353    0BC 11111   3    1      0      0     0      1      1
        354    0B9 11111   E    0      0      0     0      1      1
        355    0BA 11111   E    0      0      0     1      1      1
        356    0BB 01000   E    0      0      0     1      1      1
        357    0BC 11111   3    1      0      0     0      1      1
        358    0B9 11111   E    0      0      0     0      1      1
        359    0BA 11111   E    0      0      0     1      1      1
        360    0BB 01000   E    0      0      0     1      1      1
        361    0BC 11111   3    1      0      0     0      1      1
        362    0B9 11111   E    0      0      0     0      1      1
        363    0BA 11111   E    0      0      0     1      1      1
        364    0BB 01000   E    0      0      0     1      1      1
        365    0BC 11111   3    1      0      0     0      1      1
        366    0B9 11111   E    0      0      0     0      1      1
        367    0BA 11111   E    0      0      0     1      1      1
        368    0BB 01000   E    0      0      0     1      1      1
        369    0BC 11111   3    1      0      0     0      1      1
        370    0B9 11111   E    0      0      0     0      1      1
        371    0BA 11111   E    0      0      0     1      1      1
        372    0BB 01000   E    0      0      0     1      1      1
        373    0BC 11111   3    1      0      0     0      1      1
        374    0B9 11111   E    0      0      0     0      1      1
        375    0BA 11111   E    0      0      0     1      1      1
        376    0BB 01000   E    0      0      0     1      1      1
        377    0BC 11111   3    1      0      0     0      1      1
        378    0B9 11111   E    0      0      0     0      1      1
        379    0BA 11111   E    0      0      0     1      1      1
        380    0BB 01000   E    0      0      0     1      1      1
        381    0BC 11111   3    1      0      0     0      1      1
        382    0B9 11111   E    0      0      0     0      1      1
        383    0BA 11111   E    0      0      0     1      1      1
        384    0BB 01000   E    0      0      0     1      1      1
        385    0BC 11111   3    1      0      0     0      1      1
        386    0B9 11111   E    0      0      0     0      1      1
        387    0BA 11111   E    0      0      0     1      1      1
        388    0BB 01000   E    0      0      0     1      1      1
        389    0BC 11111   3    1      0      0     0      1      1
        390    0B9 11111   E    0      0      0     0      1      1
        391    0BA 11111   E    0      0      0     1      1      1
        392    0BB 01000   E    0      0      0     1      1      1
        393    0BC 11111   3    1      0      0     0      1      1
        394    0B9 11111   E    0      0      0     0      1      1
        395    0BA 11111   E    0      0      0     1      1      1
        396    0BB 01000   E    0      0      0     1      1      1
        397    0BC 11111   3    1      0      0     0      1      1
        398    0B9 11111   E    0      0      0     0      1      1
        399    0BA 11111   E    0      0      0     1      1      1
        400    0BB 01000   E    0      0      0     1      1      1
        401    0BC 11111   3    1      0      0     0      1      1
        402    0B9 11111   E    0      0      0     0      1      1
        403    0BA 11111   E    0      0      0     1      1      1
        404    0BB 01000   E    0      0      0     1      1      1
        405    0BC 11111   3    1      0      0     0      1      1
        406    0B9 11111   E    0      0      0     0      1      1
        407    0BA 11111   E    0      0      0     1      1      1
        408    0BB 01000   E    0      0      0     1      1      1
        409    0BC 11111   3    1      0      0     0      1      1
        410    0B9 11111   E    0      0      0     0      1      1
        411    0BA 11111   E    0      0      0     1      1      1
        412    0BB 01000   E    0      0      0     1      1      1
        413    0BC 11111   3    1      0      0     0      1      1
        414    0B9 11111   E    0      0      0     0      1      1
        415    0BA 11111   E    0      0      0     1      1      1
        416    0BB 01000   E    0      0      0     1      1      1
        417    0BC 11111   3    1      0      0     0      1      1
        418    0B9 11111   E    0      0      0     0      1      1
        419    0BA 11111   E    0      0      0     1      1      1
        420    0BB 01000   E    0      0      0     1      1      1
        421    0BC 11111   3    1      0      0     0      1      1
        422    0B9 11111   E    0      0      0     0      1      1
        423    0BA 11111   E    0      0      0     1      1      1
        424    0BB 01000   E    0      0      0     1      1      1
        425    0BC 11111   3    1      0      0     0      1      1
        426    0B9 11111   E    0      0      0     0      1      1
        427    0BA 11111   E    0      0      0     1      1      1
        428    0BB 01000   E    0      0      0     1      1      1
        429    0BC 11111   3    1      0      0     0      1      1
        430    0B9 11111   E    0      0      0     0      1      1
        431    0BA 11111   E    0      0      0     1      1      1
        432    0BB 01000   E    0      0      0     1      1      1
        433    0BC 11111   3    1      0      0     0      1      1
        434    0B9 11111   E    0      0      0     0      1      1
        435    0BA 11111   E    0      0      0     1      1      1
        436    0BB 01000   E    0      0      0     1      1      1
        437    0BC 11111   3    1      0      0     0      1      1
        438    0B9 11111   E    0      0      0     0      1      1
        439    0BA 11111   E    0      0      0     1      1      1
        440    0BB 01000   E    0      0      0     1      1      1
        441    0BC 11111   3    1      0      0     0      1      1
        442    0B9 11111   E    0      0      0     0      1      1
        443    0BA 11111   E    0      0      0     1      1      1
        444    0BB 01000   E    0      0      0     1      1      1
        445    0BC 11111   3    1      0      0     0      1      1
        446    0B9 11111   E    0      0      0     0      1      1
        447    0BA 11111   E    0      0      0     1      1      1
        448    0BB 01000   E    0      0      0     1      1      1
        449    0BC 11111   3    1      0      0     0      1      1
        450    0B9 11111   E    0      0      0     0      1      1
        451    0BA 11111   E    0      0      0     1      1      1
        452    0BB 01000   E    0      0      0     1      1      1
        453    0BC 11111   3    1      0      0     0      1      1
        454    0B9 11111   E    0      0      0     0      1      1
        455    0BA 11111   E    0      0      0     1      1      1
        456    0BB 01000   E    0      0      0     1      1      1
        457    0BC 11111   3    1      0      0     0      1      1
        458    0B9 11111   E    0      0      0     0      1      1
        459    0BA 11111   E    0      0      0     1      1      1
        460    0BB 01000   E    0      0      0     1      1      1
        461    0BC 11111   3    1      0      0     0      1      1
        462    0B9 11111   E    0      0      0     0      1      1
        463    0BA 11111   E    0      0      0     1      1      1
        464    0BB 01000   E    0      0      0     1      1      1
        465    0BC 11111   3    1      0      0     0      1      1
        466    0B9 11111   E    0      0      0     0      1      1
        467    0BA 11111   E    0      0      0     1      1      1
        468    0BB 01000   E    0      0      0     1      1      1
        469    0BC 11111   3    1      0      0     0      1      1
        470    0B9 11111   E    0      0      0     0      1      1
        471    0BA 11111   E    0      0      0     1      1      1
        472    0BB 01000   E    0      0      0     1      1      1
        473    0BC 11111   3    1      0      0     0      1      1
        474    0B9 11111   E    0      0      0     0      1      1
        475    0BA 11111   E    0      0      0     1      1      1
        476    0BB 01000   E    0      0      0     1      1      1
        477    0BC 11111   3    1      0      0     0      1      1
        478    0B9 11111   E    0      0      0     0      1      1
        479    0BA 11111   E    0      0      0     1      1      1
        480    0BB 01000   E    0      0      0     1      1      1
        481    0BC 11111   3    1      0      0     0      1      1
        482    0B9 11111   E    0      0      0     0      1      1
        483    0BA 11111   E    0      0      0     1      1      1
        484    0BB 01000   E    0      0      0     1      1      1
        485    0BC 11111   3    1      0      0     0      1      1
        486    0B9 11111   E    0      0      0     0      1      1
        487    0BA 11111   E    0      0      0     1      1      1
        488    0BB 01000   E    0      0      0     1      1      1
        489    0BC 11111   3    1      0      0     0      1      1
        490    0B9 11111   E    0      0      0     0      1      1
        491    0BA 11111   E    0      0      0     1      1      1
        492    0BB 01000   E    0      0      0     1      1      1
        493    0BC 11111   3    1      0      0     0      1      1
        494    0B9 11111   E    0      0      0     0      1      1
        495    0BA 11111   E    0      0      0     1      1      1
        496    0BB 01000   E    0      0      0     1      1      1
        497    0BC 11111   3    1      0      0     0      1      1
        498    0B9 11111   E    0      0      0     0      1      1
        499    0BA 11111   E    0      0      0     1      1      1
        500    0BB 01000   E    0      0      0     1      1      1
        501    0BC 11111   3    1      0      0     0      1      1
        502    0B9 11111   E    0      0      0     0      1      1
        503    0BA 11111   E    0      0      0     1      1      1
        504    0BB 01000   E    0      0      0     1      1      1
        505    0BC 11111   3    1      0      0     0      1      1
        506    0B9 11111   E    0      0      0     0      1      1
        507    0BA 11111   E    0      0      0     1      1      1
        508    0BB 01000   E    0      0      0     1      1      1
        509    0BC 11111   3    1      0      0     0      1      1
        510    0B9 11111   E    0      0      0     0      1      1
        511    0BA 11111   E    0      0      0     1      1      1
        512    0BB 01000   E    0      0      0     1      1      1
        513    0BC 11111   3    1      0      0     0      1      1
        514    0B9 11111   E    0      0      0     0      1      1
        515    0BA 11111   E    0      0      0     1      1      1
        516    0BB 01000   E    0      0      0     1      1      1
        517    0BC 11111   3    1      0      0     0      1      1
        518    0B9 11111   E    0      0      0     0      1      1
        519    0BA 11111   E    0      0      0     1      1      1
        520    0BB 01000   E    0      0      0     1      1      1
        521    0BC 11111   3    1      0      0     0      1      1
        522    0B9 11111   E    0      0      0     0      1      1
        523    0BA 11111   E    0      0      0     1      1      1
        524    0BB 01000   E    0      0      0     1      1      1
        525    0BC 11111   3    1      0      0     0      1      1
        526    0B9 11111   E    0      0      0     0      1      1
        527    0BA 11111   E    0      0      0     1      1      1
        528    0BB 01000   E    0      0      0     1      1      1
        529    0BC 11111   3    1      0      0     0      1      1
        530    0B9 11111   E    0      0      0     0      1      1
        531    0BA 11111   E    0      0      0     1      1      1
        532    0BB 01000   E    0      0      0     1      1      1
        533    0BC 11111   3    1      0      0     0      1      1
        534    0B9 11111   E    0      0      0     0      1      1
        535    0BA 11111   E    0      0      0     1      1      1
        536    0BB 01000   E    0      0      0     1      1      1
        537    0BC 11111   3    1      0      0     0      1      1
        538    0B9 11111   E    0      0      0     0      1      1
        539    0BA 11111   E    0      0      0     1      1      1
        540    0BB 01000   E    0      0      0     1      1      1
        541    0BC 11111   3    1      0      0     0      1      1
        542    0B9 11111   E    0      0      0     0      1      1
        543    0BA 11111   E    0      0      0     1      1      1
        544    0BB 01000   E    0      0      0     1      1      1
        545    0BC 11111   3    1      0      0     0      1      1
        546    0B9 11111   E    0      0      0     0      1      1
        547    0BA 11111   E    0      0      0     1      1      1
        548    0BB 01000   E    0      0      0     1      1      1
        549    0BC 11111   3    1      0      0     0      1      1
        550    0B9 11111   E    0      0      0     0      1      1
        551    0BA 11111   E    0      0      0     1      1      1
        552    0BB 01000   E    0      0      0     1      1      1
        553    0BC 11111   3    1      0      0     0      1      1
        554    0B9 11111   E    0      0      0     0      1      1
        555    0BA 11111   E    0      0      0     1      1      1
        556    0BB 01000   E    0      0      0     1      1      1
        557    0BC 11111   3    1      0      0     0      1      1
    Last edited by nikola-wan; February 17th, 2020 at 04:59 AM.

  5. #195
    Join Date
    Jun 2012
    Location
    UK - Worcester
    Posts
    3,543

    Default

    Thanks for that Monty; that will be invaluable.

    I will add the 4-bit counter tonight and compare my emulator trace with what you have provided.

    It will be interesting to see what the small loop is at the end...

    Dave

  6. #196
    Join Date
    Jun 2012
    Location
    UK - Worcester
    Posts
    3,543

    Default

    Excellent.

    I have the PC and 4-bit counter installed now and I seem to get what you do down to address 085.

    I know why this fails - there are four memory commands (WRITE-D, READ-D, XFER8 and XFER16) that I have not implemented yet. There is very little information in the manuals on these commands, but I think I have worked out what they are doing so I should be able to chase the logic through the schematics.

    I can see the little microcode loop from 0B9 to 0BC. I will see what it is doing tomorrow.

    It might be interesting to trace from URA 0BD onwards. This should be after the loop (whatever it is doing).

    What I would like to see (hopefully) is execution of any microcodes at addresses >= 300. This indicates execution of code from the actual ROM firmware.

    Cheers,

    Dave

  7. #197

    Default

    Quote Originally Posted by daver2 View Post
    Excellent.

    I have the PC and 4-bit counter installed now and I seem to get what you do down to address 085.

    I know why this fails - there are four memory commands (WRITE-D, READ-D, XFER8 and XFER16) that I have not implemented yet. There is very little information in the manuals on these commands, but I think I have worked out what they are doing so I should be able to chase the logic through the schematics.

    I can see the little microcode loop from 0B9 to 0BC. I will see what it is doing tomorrow.

    It might be interesting to trace from URA 0BD onwards. This should be after the loop (whatever it is doing).

    What I would like to see (hopefully) is execution of any microcodes at addresses >= 300. This indicates execution of code from the actual ROM firmware.

    Cheers,

    Dave
    Dave,

    Here is the trace starting at 0BD, but it quickly becomes a new loop.

    I think I'll change the trigger to 0C9 to see what happens next

    Code:
    MACHINE 1   -  State Listing                                                    
    
                                                                             
    Label    > URA CC    SEQ BROT BRMUX1 BRMUX0 LMODE TSTBR1 TSTBR0 
    Base     > Hex Binar Hex Bina Binary Binary Binar Binary Binary 
    __________ ___ _____ ___ ____ ______ ______ _____ ______ ______ 
    
         -7    0BA 11111   E    0      0      0     1      1      1
         -6    0BB 01000   E    0      0      0     1      1      1
         -5    0BC 11111   3    1      0      0     0      1      1
         -4    0B9 11111   E    0      0      0     0      1      1
         -3    0BA 11111   E    0      0      0     1      1      1
         -2    0BB 01000   E    0      0      0     1      1      1
         -1    0BC 11111   3    1      0      0     0      1      1
          0    0BD 11111   3    1      0      0     0      1      1
          1    0BE 11111   E    0      0      0     0      1      1
          2    0BF 01000   E    0      0      0     0      1      1
          3    0C0 11111   3    0      0      0     0      1      1
          4    0C6 11111   E    0      0      0     1      1      1
          5    0C7 01000   E    0      0      0     1      1      1
          6    0C8 11111   3    1      0      0     0      1      1
          7    0BE 11111   E    0      0      0     0      1      1
          8    0BF 01000   E    0      0      0     0      1      1
          9    0C0 11111   3    0      0      0     0      1      1
         10    0C6 11111   E    0      0      0     1      1      1
         11    0C7 01000   E    0      0      0     1      1      1
         12    0C8 11111   3    1      0      0     0      1      1
         13    0BE 11111   E    0      0      0     0      1      1
         14    0BF 01000   E    0      0      0     0      1      1
         15    0C0 11111   3    0      0      0     0      1      1
         16    0C6 11111   E    0      0      0     1      1      1
         17    0C7 01000   E    0      0      0     1      1      1
         18    0C8 11111   3    1      0      0     0      1      1
         19    0BE 11111   E    0      0      0     0      1      1
         20    0BF 01000   E    0      0      0     0      1      1
         21    0C0 11111   3    0      0      0     0      1      1
         22    0C6 11111   E    0      0      0     1      1      1
         23    0C7 01000   E    0      0      0     1      1      1
         24    0C8 11111   3    1      0      0     0      1      1
         25    0BE 11111   E    0      0      0     0      1      1
         26    0BF 01000   E    0      0      0     0      1      1
         27    0C0 11111   3    0      0      0     0      1      1
         28    0C6 11111   E    0      0      0     1      1      1
         29    0C7 01000   E    0      0      0     1      1      1
         30    0C8 11111   3    1      0      0     0      1      1

  8. #198

    Default

    Dave,

    After that loop we get to the 300's in microcode addresses!

    Code:
    MACHINE 1   -  State Listing                                                    
    
                                                                             
    Label    > URA CC    SEQ BROT BRMUX1 BRMUX0 LMODE TSTBR1 TSTBR0 
    Base     > Hex Binar Hex Bina Binary Binary Binar Binary Binary 
    __________ ___ _____ ___ ____ ______ ______ _____ ______ ______ 
    
         -7    0C8 11111   3    1      0      0     0      1      1
         -6    0BE 11111   E    0      0      0     0      1      1
         -5    0BF 01000   E    0      0      0     0      1      1
         -4    0C0 11111   3    0      0      0     0      1      1
         -3    0C6 11111   E    0      0      0     1      1      1
         -2    0C7 01000   E    0      0      0     1      1      1
         -1    0C8 11111   3    1      0      0     0      1      1
          0    0C9 01000   E    0      0      0     0      1      1
          1    0CA 11111   3    1      0      0     0      1      1
          2    0CB 10011   E    0      0      0     1      1      1
          3    0CC 11101   E    0      0      0     0      1      1
          4    0CD 11111   F    0      0      0     0      1      1
          5    3CE 01000   F    0      0      0     0      1      1
          6    38E 01000   F    0      0      0     0      1      1
          7    37F 00101   F    0      0      0     0      1      1
          8    386 01001   F    0      0      0     0      1      1
          9    3B7 01001   F    0      0      0     0      1      1
         10    386 01001   F    0      0      0     0      1      1
         11    3B7 01001   F    0      0      0     0      1      1
         12    37F 00101   F    0      0      0     0      1      1
         13    386 01001   F    0      0      0     0      1      1
         14    3B7 01001   F    0      0      0     0      1      1
         15    37F 00101   F    0      0      0     0      1      1
         16    386 01001   F    0      0      0     0      1      1
         17    3B7 01001   F    0      0      0     0      1      1
         18    386 01001   F    0      0      0     0      1      1
         19    3B7 01001   F    0      0      0     0      1      1
         20    386 01001   F    0      0      0     0      1      1
         21    3B7 01001   F    0      0      0     0      1      1
         22    3C6 01001   F    0      0      0     0      1      1
         23    3FF 01000   F    0      0      0     0      1      1
         24    35A 00011   F    0      0      0     0      1      1
         25    326 11111   3    1      0      0     0      1      1
         26    2A6 11111   3    1      0      0     0      1      1
         27    2BB 11111   F    0      0      0     0      1      1
         28    3FF 01000   F    0      0      0     0      1      1
         29    35A 00011   F    0      0      0     0      1      1
         30    326 11111   3    1      0      0     0      1      1
         31    2A6 11111   3    1      0      0     0      1      1
         32    2BB 11111   F    0      0      0     0      1      1
         33    3FF 01000   F    0      0      0     0      1      1
         34    35A 00011   F    0      0      0     0      1      1
         35    326 11111   3    1      0      0     0      1      1
         36    2A6 11111   3    1      0      0     0      1      1
         37    2BB 11111   F    0      0      0     0      1      1
         38    3FF 01000   F    0      0      0     0      1      1
         39    35A 00011   F    0      0      0     0      1      1
         40    326 11111   3    1      0      0     0      1      1
         41    2A6 11111   3    1      0      0     0      1      1
         42    2BB 11111   F    0      0      0     0      1      1
    I've attached the entire 131KB trace listing - click link below:

    0C9_LIST.TXT

    Monty
    Last edited by nikola-wan; February 17th, 2020 at 01:24 PM.

  9. #199
    Join Date
    Jun 2012
    Location
    UK - Worcester
    Posts
    3,543

    Default

    Thanks Monty, that will be really helpful!

    Dave

  10. #200
    Join Date
    Jun 2012
    Location
    UK - Worcester
    Posts
    3,543

    Default

    Well, I've disassembled the microcode 'trail' you gave me and I can confirm one thing that we suspected from many years ago:

    The 16-bit reset vector for the 4052 is stored at memory location FEFE within the CONSTANT ROM.

    In version 5.1 of the 4052 BASIC ROMS the word that is stored there is 79F3, which (we already know from the effort put into GanjaTron's 4052 machine) is where it starts executing code at on startup...

    And a quick check of the first few 3XX microcodes that are executed corresponds exactly to the macro instructions that are executed as part of the known start-up routine to size memory within the 4052.

    All this time to find that out !

    Still, I have got there by understanding the microcode itself - so I can see what the machine is actually doing on startup now...

    Still a long way off from having a 4052 emulator, but closer than I was before the weekend started!

    I feel I am now getting somewhere productive at last rather than just endlessly staring at microcode and wondering why it was doing what it was doing...

    Dave
    Last edited by daver2; February 18th, 2020 at 10:57 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •