Diff for /np2/i286a/i286a_sf.s between versions 1.1 and 1.4

version 1.1, 2003/12/17 03:46:27 version 1.4, 2003/12/18 19:14:08
Line 1 Line 1
   
         INCLUDE         i286a.inc          INCLUDE         i286a.inc
           INCLUDE         i286aea.inc
         INCLUDE         i286asft.inc          INCLUDE         i286asft.inc
   
         IMPORT          _szpcflag8  
         IMPORT          i286a_ea          IMPORT          i286a_ea
         IMPORT          i286_memoryread          IMPORT          i286_memoryread
         IMPORT          i286_memoryread_w          IMPORT          i286_memoryread_w
         IMPORT          i286_memorywrite          IMPORT          i286_memorywrite
         IMPORT          i286_memorywrite_w          IMPORT          i286_memorywrite_w
   
         EXPORT          shift_ea8_1          EXPORT          i286asft8_1
         EXPORT          shift_ea16_1          EXPORT          i286asft16_1
         EXPORT          shift_ea8_cl          EXPORT          i286asft8_cl
         EXPORT          shift_ea8_d8          EXPORT          i286asft8_d8
         EXPORT          shift_e16_cl          EXPORT          i286asft16_cl
         EXPORT          shift_ea16_d8          EXPORT          i286asft16_d8
   
         AREA    .text, CODE, READONLY          AREA    .text, CODE, READONLY
   
 shift_ea8_1             GETPC8  i286asft8_1             GETPC8
                                 and             r6, r0, #(7 << 3)                                  and             r6, r0, #(7 << 3)
                                 cmp             r0, #&c0                                  cmp             r0, #&c0
                                 bcc             sft8m                                  bcc             sft8m
Line 113  sar_e8_1  SAR8 r0 Line 113  sar_e8_1  SAR8 r0
   
 ; ----  ; ----
   
 shift_ea16_1    GETPC8  i286asft16_1    GETPC8
                                 and             r6, r0, #(7 << 3)                                  and             r6, r0, #(7 << 3)
                                 cmp             r0, #&c0                                  cmp             r0, #&c0
                                 bcc             sft16m                                  bcc             sft16m
Line 210  sar_e16_1  SAR16 r0 Line 210  sar_e16_1  SAR16 r0
   
 ; ----  ; ----
   
 shift_ea8_cl    GETPC8  i286asft8_cl    GETPC8
                                 and             r6, r0, #(7 << 3)                                  and             r6, r0, #(7 << 3)
                                 cmp             r0, #&c0                                  cmp             r0, #&c0
                                 bcc             sft8clm                                  bcc             sft8clm
Line 242  sft8cle   ldrb r4, [r9, #CPU_CL] Line 242  sft8cle   ldrb r4, [r9, #CPU_CL]
                                 adr             r1, sft_ext8cl                                  adr             r1, sft_ext8cl
                                 ldr             pc, [r1, r6 lsr #1]                                  ldr             pc, [r1, r6 lsr #1]
   
 shift_ea8_d8    GETPC8  i286asft8_d8    GETPC8
                                 and             r6, r0, #(7 << 3)                                  and             r6, r0, #(7 << 3)
                                 cmp             r0, #&c0                                  cmp             r0, #&c0
                                 bcc             sft8d8m                                  bcc             sft8d8m
Line 347  sar_e8_cl  SAR8CL r0, r4 Line 347  sar_e8_cl  SAR8CL r0, r4
   
 ; ----  ; ----
   
 shift_e16_cl    GETPC8  i286asft16_cl   GETPC8
                                 and             r6, r0, #(7 << 3)                                  and             r6, r0, #(7 << 3)
                                 cmp             r0, #&c0                                  cmp             r0, #&c0
                                 bcc             sft16clm                                  bcc             sft16clm
                                 CPUWORK #2                                  CPUWORK #5
                                 R16SRC  r0, r5                                  R16SRC  r0, r5
                                 ldrb    r0, [r9, #CPU_CL]                                  ldrb    r0, [r9, #CPU_CL]
                                 ands    r0, r0, #&1f                                  ands    r0, r0, #&1f
                                 moveq   pc, r11                                  moveq   pc, r11
                                   CPUWORK r0
                                 add             r5, r5, #CPU_REG                                  add             r5, r5, #CPU_REG
                                 adr             r1, sft_reg16cl                                  adr             r1, sft_reg16cl
                                 ldrh    r4, [r5]                                  ldrh    r4, [r5]
                                 ldr             pc, [r1, r6 lsr #1]                                  ldr             pc, [r1, r6 lsr #1]
 sft16clm                CPUWORK #7  sft16clm                CPUWORK #8
                                 bl              i286a_ea                                  bl              i286a_ea
                                 tst             r0, #1                                  tst             r0, #1
                                 bne             sft16cle                                  bne             sft16cle
Line 370  sft16clm  CPUWORK #7 Line 371  sft16clm  CPUWORK #7
                                 ldrb    r0, [r9, #CPU_CL]                                  ldrb    r0, [r9, #CPU_CL]
                                 ands    r0, r0, #&1f                                  ands    r0, r0, #&1f
                                 moveq   pc, r11                                  moveq   pc, r11
                                   CPUWORK r0
                                 adr             r1, sft_reg16cl                                  adr             r1, sft_reg16cl
                                 ldrh    r4, [r5]                                  ldrh    r4, [r5]
                                 ldr             pc, [r1, r6 lsr #1]                                  ldr             pc, [r1, r6 lsr #1]
 sft16cle                ldrb    r4, [r9, #CPU_CL]  sft16cle                ldrb    r4, [r9, #CPU_CL]
                                 ands    r4, r4, #&1f                                  ands    r4, r4, #&1f
                                 moveq   pc, r11                                  moveq   pc, r11
                                   CPUWORK r4
                                 mov             r5, r0                                  mov             r5, r0
                                 bl              i286_memoryread_w                                  bl              i286_memoryread_w
                                 adr             r1, sft_ext16cl                                  adr             r1, sft_ext16cl
                                 ldr             pc, [r1, r6 lsr #1]                                  ldr             pc, [r1, r6 lsr #1]
   
 shift_ea16_d8   GETPC8  i286asft16_d8   GETPC8
                                 and             r6, r0, #(7 << 3)                                  and             r6, r0, #(7 << 3)
                                 cmp             r0, #&c0                                  cmp             r0, #&c0
                                 bcc             sft16d8m                                  bcc             sft16d8m
                                 CPUWORK #2                                  CPUWORK #5
                                 R16SRC  r0, r5                                  R16SRC  r0, r5
                                 GETPC8                                  GETPC8
                                 ands    r0, r0, #&1f                                  ands    r0, r0, #&1f
                                 moveq   pc, r11                                  moveq   pc, r11
                                   CPUWORK r0
                                 add             r5, r5, #CPU_REG                                  add             r5, r5, #CPU_REG
                                 adr             r1, sft_reg16cl                                  adr             r1, sft_reg16cl
                                 ldrh    r4, [r5]                                  ldrh    r4, [r5]
                                 ldr             pc, [r1, r6 lsr #1]                                  ldr             pc, [r1, r6 lsr #1]
 sft16d8m                CPUWORK #7  sft16d8m                CPUWORK #8
                                 bl              i286a_ea                                  bl              i286a_ea
                                 tst             r0, #1                                  tst             r0, #1
                                 bne             sft16d8e                                  bne             sft16d8e
Line 404  sft16d8m  CPUWORK #7 Line 408  sft16d8m  CPUWORK #7
                                 GETPC8                                  GETPC8
                                 ands    r0, r0, #&1f                                  ands    r0, r0, #&1f
                                 moveq   pc, r11                                  moveq   pc, r11
                                   CPUWORK r0
                                 adr             r1, sft_reg16cl                                  adr             r1, sft_reg16cl
                                 ldrh    r4, [r5]                                  ldrh    r4, [r5]
                                 ldr             pc, [r1, r6 lsr #1]                                  ldr             pc, [r1, r6 lsr #1]
Line 411  sft16d8e  mov  r5, r0 Line 416  sft16d8e  mov  r5, r0
                                 GETPC8                                  GETPC8
                                 ands    r4, r0, #&1f                                  ands    r4, r0, #&1f
                                 moveq   pc, r11                                  moveq   pc, r11
                                   CPUWORK r4
                                 mov             r0, r5                                  mov             r0, r5
                                 bl              i286_memoryread_w                                  bl              i286_memoryread_w
                                 adr             r1, sft_ext16cl                                  adr             r1, sft_ext16cl

Removed from v.1.1  
changed lines
  Added in v.1.4


RetroPC.NET-CVS <cvs@retropc.net>