Changeset 4f508e6 in buchla-68k for lib700/blkfill.s
- Timestamp:
- 07/01/2017 02:34:46 PM (7 years ago)
- Branches:
- master
- Children:
- 08e1da1
- Parents:
- f40a309
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib700/blkfill.s
rf40a309 r4f508e6 1 *------------------------------------------------------------------------------2 *blkfill.s -- block fill function3 *Version 1 -- 1987-08-28 -- D.N. Lynx Crowe4 * 5 *void6 *blkfill(where, what, count)7 * char *where;8 *char what;9 *short count;10 * 11 *Fills 'count' bytes at 'where' with 'what'.12 *------------------------------------------------------------------------------1 | ------------------------------------------------------------------------------ 2 | blkfill.s -- block fill function 3 | Version 1 -- 1987-08-28 -- D.N. Lynx Crowe 4 5 | void 6 | blkfill(where, what, count) 7 | char |where; 8 | char what; 9 | short count; 10 11 | Fills 'count' bytes at 'where' with 'what'. 12 | ------------------------------------------------------------------------------ 13 13 .text 14 * 14 15 15 .xdef _blkfill 16 * 16 17 17 _blkfill: link a6,#0 18 18 movem.l d5-d7/a5-a5,-(a7) … … 21 21 move.w 14(a6),d6 22 22 bra blkf2 23 * 23 24 24 blkf1: move.b d7,(a5)+ 25 * 25 26 26 blkf2: move.w d6,d0 27 27 subq.w #1,d6 28 28 tst.w d0 29 29 bgt blkf1 30 * 30 31 31 tst (a7)+ 32 32 movem.l (a7)+,d6-d7/a5-a5 33 33 unlk a6 34 34 rts 35 * 35 36 36 .end
Note:
See TracChangeset
for help on using the changeset viewer.