initial
[fpgammix.git] / workloads / emulation / test-divu2.mmo.lst
blob4def7995e9ba31efbb636155a92b794dbe8e4757
1                                    LOC  #600000000
2                    
3 0000000600000000:  Traphandler  PUSHJ   255,1F
4  ...000: f2ffxxxx
5  ...004: f60400ff               PUT     rJ,$255
6  ...008: e3ff0000               SETL    $255,0
7  ...00c: f9000001               RESUME  1
8                    
9  ...010: e200e300  Main         SETML   $0,#e300
10  ...014: e1010006                  SETMH        $1,6
11  ...018: ab000108                  STTU $0,$1,8
12  ...01c: e1ff0006                  SETMH        $255,6
13  ...020: f60d00ff               PUT     rT,$255
14  ...024: e3fe06c1               SETL    $254,1729
15  ...028: e3fd0013               SETL    $253,19
16  ...02c: 1efffefd               DIVU    $255,$254,$253
17  ...030: e7ff1234                  INCL $255,#1234
18  ...034: 00000000               TRAP    0,0,0
19                    
20                    
21  ...038: fe00001d  1H           GET     $0,rXX
22  ...03c: 3f010038               SRU     $1,$0,56
23  ...040: 31010102               CMP     $1,$1,#02
24  ...044: 4a01xxxx                  BNZ  $1,2F
25                    
26  ...048: 3f000018                  SRU  $0,$0,24
27  ...04c: c90100fc                  AND  $1,$0,#FC
28  ...050: 3101011c                  CMP  $1,$1,#1C
29  ...054: 4201xxxx                  BZ   $1,3F
30                    
31                    % Unknown trap
32  ...058: f8000000               POP     0,0
33                    
34                    % Ordinary trap ("system call") handling
35  ...05c: fd000000  2H           SWYM
36  ...060: f8000000               POP     0,0
37                    
38                    
39                    % Div[u][i] emulation
40  ...064: fe00001e  3H           GET     $0,rYY
41  ...068: fe01001f               GET     $1,rZZ
42  ...06c: 20000001               ADD     $0,$0,$1   % This should be division emulation but ...
43  ...070: f61f0000               PUT     rZZ,$0
44  ...074: f8000000               POP     0,0
46 Symbol table:
47  Main = #0000000600000010 (1)
48  Traphandler = #0000000600000000 (2)