- Timestamp:
- 07/01/2017 02:34:46 PM (7 years ago)
- Branches:
- master
- Children:
- 08e1da1
- Parents:
- f40a309
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/ptcl12.s
rf40a309 r4f508e6 1 *------------------------------------------------------------------------------2 *ptcl12.s -- store a cluster entry into the FAT3 *Version 2 -- 1987-10-27 -- D.N. Lynx Crowe4 *------------------------------------------------------------------------------1 | ------------------------------------------------------------------------------ 2 | ptcl12.s -- store a cluster entry into the FAT 3 | Version 2 -- 1987-10-27 -- D.N. Lynx Crowe 4 | ------------------------------------------------------------------------------ 5 5 .text 6 6 .xdef __ptcl12 7 * 8 CL .equ129 VAL .equ1410 CLA .equd711 CLP .equd612 CLT .equd513 FAT .equa514 * 7 8 CL = 12 9 VAL = 14 10 CLA = d7 11 CLP = d6 12 CLT = d5 13 FAT = a5 14 15 15 __ptcl12: link A6,#0 16 16 movem.l CLT-CLA/FAT-FAT,-(sp) 17 17 move.l 8(A6),FAT 18 18 move.w CL(A6),CLA 19 lsr.w CLA19 lsr.w #1,CLA 20 20 add.w CL(A6),CLA 21 21 move.b 1(FAT,CLA.W),CLP … … 24 24 btst #0,CL+1(A6) 25 25 beq L2 26 * 26 27 27 move.w CLP,CLT 28 and.w # $000F,CLT28 and.w #0x000F,CLT 29 29 move.w VAL(A6),D0 30 30 lsl.w #4,D0 31 31 or.w D0,CLT 32 32 bra L3 33 * 33 34 34 L2: move.w CLP,CLT 35 and.w # $F000,CLT35 and.w #0xF000,CLT 36 36 move.w VAL(A6),D0 37 and.w # $0FFF,D037 and.w #0x0FFF,D0 38 38 or.w D0,CLT 39 * 39 40 40 L3: move.b CLT,0(FAT,CLA.W) 41 41 move.w CLT,D0 42 42 lsr.w #8,D0 43 43 move.b D0,1(FAT,CLA.W) 44 * 44 45 45 L1: movem.l (sp)+,CLT-CLA/FAT-FAT 46 46 unlk A6 47 47 rts 48 * 48 49 49 .end
Note:
See TracChangeset
for help on using the changeset viewer.