1: /
   2: /
   3: 
   4: / rh -- simple array l/r values
   5: 
   6: achk    = 1 / 1 to check array bounds
   7: .globl  gal1
   8: .globl  gal2
   9: .globl  gal4
  10: .globl  gal8
  11: .globl  gal16
  12: .globl  gar1
  13: .globl  gar2
  14: .globl  gar4
  15: .globl  gar8
  16: .globl  gar16
  17: 
  18: .globl  rerr
  19: 
  20: gal1:
  21:         tst     (sp)+
  22:         dec     (sp)
  23:         br      1f
  24: 
  25: gal2:
  26:         tst     (sp)+
  27:         dec     (sp)
  28:         asl     (sp)
  29:         br      1f
  30: 
  31: gal4:
  32:         tst     (sp)+
  33:         dec     (sp)
  34:         asl     (sp)
  35:         asl     (sp)
  36:         br      1f
  37: 
  38: gal8:
  39:         tst     (sp)+
  40:         dec     (sp)
  41:         asl     (sp)
  42:         asl     (sp)
  43:         asl     (sp)
  44:         br      1f
  45: 
  46: gal16:
  47:         tst     (sp)+
  48:         dec     (sp)
  49:         asl     (sp)
  50:         asl     (sp)
  51:         asl     (sp)
  52:         asl     (sp)
  53: 
  54: 1:
  55:         cmp     (sp),(r4)+
  56: .if achk
  57:         bhis    9f
  58: .endif
  59:         add     (r4)+,(sp)
  60:         jmp     *(r4)+
  61: 
  62: 9:
  63:         jsr     r5,rerr; 15.
  64:         4
  65: 
  66: gar1:
  67:         tst     (sp)+
  68:         dec     (sp)
  69:         cmp     (sp),(r4)+
  70: .if achk
  71:         bhis    9b
  72: .endif
  73:         add     (r4)+,(sp)
  74:         movb    *(sp)+,r0
  75:         mov     r0,-(sp)
  76:         jmp     *(r4)+
  77: 
  78: gar2:
  79:         tst     (sp)+
  80:         dec     (sp)
  81:         asl     (sp)
  82:         cmp     (sp),(r4)+
  83: .if achk
  84:         bhis    9b
  85: .endif
  86:         add     (r4)+,(sp)
  87:         mov     *(sp)+,-(sp)
  88:         jmp     *(r4)+
  89: 
  90: gar4:
  91:         tst     (sp)+
  92:         dec     (sp)
  93:         mov     (sp)+,r0
  94:         asl     r0
  95:         asl     r0
  96:         cmp     r0,(r4)+
  97: .if achk
  98:         bhis    9b
  99: .endif
 100:         add     (r4)+,r0
 101:         cmp     (r0)+,(r0)+
 102:         mov     -(r0),-(sp)
 103:         mov     -(r0),-(sp)
 104:         jmp     *(r4)+
 105: 
 106: gar8:
 107:         setd
 108:         tst     (sp)+
 109:         dec     (sp)
 110:         asl     (sp)
 111:         asl     (sp)
 112:         asl     (sp)
 113:         cmp     (sp),(r4)+
 114: .if achk
 115:         bhis    9b
 116: .endif
 117:         add     (r4)+,(sp)
 118:         movf    *(sp)+,fr0
 119:         movf    fr0,-(sp)
 120:         jmp     *(r4)+
 121: 
 122: gar16:
 123:         setd
 124:         tst     (sp)+
 125:         dec     (sp)
 126:         mov     (sp)+,r0
 127:         asl     r0
 128:         asl     r0
 129:         asl     r0
 130:         asl     r0
 131:         cmp     r0,(r4)+
 132: .if achk
 133:         bhis    9b
 134: .endif
 135:         add     (r4)+,r0
 136:         movf    (r0)+,fr0
 137:         movf    (r0)+,fr1
 138:         movf    fr1,-(sp)
 139:         movf    fr0,-(sp)
 140:         jmp     *(r4)+

Defined functions

achk defined in line 6; used 6 times
gal1 declared in line 7; defined in line 20; used 1 times
  • in line 7
gal16 declared in line 11; defined in line 46; used 1 times
  • in line 11
gal2 declared in line 8; defined in line 25; used 1 times
  • in line 8
gal4 declared in line 9; defined in line 31; used 1 times
  • in line 9
gal8 declared in line 10; defined in line 38; used 1 times
  • in line 10
gar1 declared in line 12; defined in line 66; used 1 times
  • in line 12
gar16 declared in line 16; defined in line 122; used 1 times
  • in line 16
gar2 declared in line 13; defined in line 78; used 1 times
  • in line 13
gar4 declared in line 14; defined in line 90; used 1 times
  • in line 14
gar8 declared in line 15; defined in line 106; used 1 times
  • in line 15
Last modified: 1975-07-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 451
Valid CSS Valid XHTML 1.0 Strict