Changeset 84c0125 in buchla-68k for vlib/vcputs.s
- Timestamp:
- 08/07/2017 01:05:57 PM (7 years ago)
- Branches:
- master
- Children:
- 8325447
- Parents:
- 15854f1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlib/vcputs.s
r15854f1 r84c0125 6 6 7 7 | vcputs(obase, nw, fg, bg, row, col, str) 8 | int |obase, nw, fg, bg, row, col;9 | char |str;8 | int *obase, nw, fg, bg, row, col; 9 | char *str; 10 10 11 11 | Outputs characters from the string at 'str' to an 'nw' … … 73 73 move.w ROW(a6),d0 | Calculate output address 74 74 move.w #VPIX,d1 | ... VPIX 75 mulu d1,d0 | ... |ROW75 mulu d1,d0 | ... * ROW 76 76 add.w #VPIX-1,d0 | ... + VPIX-1 77 mulu d5,d0 | ... |NW77 mulu d5,d0 | ... * NW 78 78 clr.l d1 | ... 79 79 move.w COL(a6),d1 | ... + 80 lsl.w #2,d1 | ... COL |480 lsl.w #2,d1 | ... COL * 4 81 81 add.l d1,d0 | ... 82 82 add.l OBASE(a6),d0 | ... + OBASE … … 91 91 adda.l #HCW,a3 | Update output pointer for next char. 92 92 lea _cgtable,a0 | Establish CG pointer in a0 93 lsl.w #1,d0 | ... 2 |character93 lsl.w #1,d0 | ... 2 * character 94 94 adda.w d0,a0 | ... + _cgtable address 95 95 move.w #VPIX-1,d6 | Set scan line counter in d6
Note:
See TracChangeset
for help on using the changeset viewer.