home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / scrollsr.arc / scroll.src
Mailbox/MIME Entity  |  1988-08-22  |  15.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file Mailbox text, 1st line "From koreth@ssyx.ucsc.edu (Steven Grimm) Fri Aug 12 12:01:00 1988", ASCII text default
100% TrID E-Mail message (Var. 2) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried x-fmt/111 Plain Text File default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime application/mbox default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 6b 6f 72 | 65 74 68 40 73 73 79 78 |From kor|eth@ssyx|
|00000010| 2e 75 63 73 63 2e 65 64 | 75 20 28 53 74 65 76 65 |.ucsc.ed|u (Steve|
|00000020| 6e 20 47 72 69 6d 6d 29 | 20 46 72 69 20 41 75 67 |n Grimm)| Fri Aug|
|00000030| 20 31 32 20 31 32 3a 30 | 31 3a 30 30 20 31 39 38 | 12 12:0|1:00 198|
|00000040| 38 0a 50 61 74 68 3a 20 | 63 61 65 6e 2e 65 6e 67 |8.Path: |caen.eng|
|00000050| 69 6e 2e 75 6d 69 63 68 | 2e 65 64 75 21 6d 61 69 |in.umich|.edu!mai|
|00000060| 6c 72 75 73 21 75 77 6d | 63 73 64 31 21 69 67 21 |lrus!uwm|csd1!ig!|
|00000070| 61 67 61 74 65 21 73 61 | 74 75 72 6e 21 73 73 79 |agate!sa|turn!ssy|
|00000080| 78 21 6b 6f 72 65 74 68 | 0a 46 72 6f 6d 3a 20 6b |x!koreth|.From: k|
|00000090| 6f 72 65 74 68 40 73 73 | 79 78 2e 75 63 73 63 2e |oreth@ss|yx.ucsc.|
|000000a0| 65 64 75 20 28 53 74 65 | 76 65 6e 20 47 72 69 6d |edu (Ste|ven Grim|
|000000b0| 6d 29 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |m).Newsg|roups: c|
|000000c0| 6f 6d 70 2e 73 6f 75 72 | 63 65 73 2e 61 74 61 72 |omp.sour|ces.atar|
|000000d0| 69 2e 73 74 0a 53 75 62 | 6a 65 63 74 3a 20 76 30 |i.st.Sub|ject: v0|
|000000e0| 31 69 30 37 30 3a 20 73 | 63 72 6f 6c 6c 20 2d 2d |1i070: s|croll --|
|000000f0| 20 66 61 73 74 20 73 63 | 72 65 65 6e 20 73 63 72 | fast sc|reen scr|
|00000100| 6f 6c 6c 65 72 0a 4b 65 | 79 77 6f 72 64 73 3a 20 |oller.Ke|ywords: |
|00000110| 47 53 54 2d 61 73 73 65 | 6d 62 6c 65 72 0a 4d 65 |GST-asse|mbler.Me|
|00000120| 73 73 61 67 65 2d 49 44 | 3a 20 3c 34 34 39 34 40 |ssage-ID|: <4494@|
|00000130| 73 61 74 75 72 6e 2e 75 | 63 73 63 2e 65 64 75 3e |saturn.u|csc.edu>|
|00000140| 0a 44 61 74 65 3a 20 31 | 32 20 41 75 67 20 38 38 |.Date: 1|2 Aug 88|
|00000150| 20 31 36 3a 30 31 20 47 | 4d 54 0a 53 65 6e 64 65 | 16:01 G|MT.Sende|
|00000160| 72 3a 20 75 73 65 6e 65 | 74 40 73 61 74 75 72 6e |r: usene|t@saturn|
|00000170| 2e 75 63 73 63 2e 65 64 | 75 0a 4c 69 6e 65 73 3a |.ucsc.ed|u.Lines:|
|00000180| 20 34 34 33 0a 41 70 70 | 72 6f 76 65 64 3a 20 6b | 443.App|roved: k|
|00000190| 6f 72 65 74 68 40 73 73 | 79 78 2e 75 63 73 63 2e |oreth@ss|yx.ucsc.|
|000001a0| 65 64 75 0a 0a 53 75 62 | 6d 69 74 74 65 64 2d 62 |edu..Sub|mitted-b|
|000001b0| 79 3a 20 75 75 6e 65 74 | 21 6d 63 76 61 78 21 70 |y: uunet|!mcvax!p|
|000001c0| 68 69 6c 6d 64 73 21 6c | 65 6f 20 28 4c 65 6f 20 |hilmds!l|eo (Leo |
|000001d0| 64 65 20 57 69 74 29 0a | 50 6f 73 74 69 6e 67 2d |de Wit).|Posting-|
|000001e0| 6e 75 6d 62 65 72 3a 20 | 56 6f 6c 75 6d 65 20 31 |number: |Volume 1|
|000001f0| 2c 20 49 73 73 75 65 20 | 37 30 0a 41 72 63 68 69 |, Issue |70.Archi|
|00000200| 76 65 2d 6e 61 6d 65 3a | 20 73 63 72 6f 6c 6c 0a |ve-name:| scroll.|
|00000210| 0a 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 70 |.The fol|lowing p|
|00000220| 72 6f 67 72 61 6d 2c 20 | 77 68 65 6e 20 70 6c 61 |rogram, |when pla|
|00000230| 63 65 64 20 69 6e 20 74 | 68 65 20 41 55 54 4f 20 |ced in t|he AUTO |
|00000240| 66 6f 6c 64 65 72 2c 20 | 73 70 65 65 64 73 20 75 |folder, |speeds u|
|00000250| 70 20 73 63 72 6f 6c 6c | 69 6e 67 0a 28 42 49 4f |p scroll|ing.(BIO|
|00000260| 53 20 6f 75 74 70 75 74 | 20 6f 6e 6c 79 29 2e 20 |S output| only). |
|00000270| 44 69 66 66 65 72 65 6e | 63 65 20 69 73 20 6d 6f |Differen|ce is mo|
|00000280| 73 74 20 6e 6f 74 69 63 | 65 61 62 6c 65 20 77 69 |st notic|eable wi|
|00000290| 74 68 20 72 65 6c 61 74 | 69 76 65 20 66 65 77 20 |th relat|ive few |
|000002a0| 63 68 61 72 73 0a 70 65 | 72 20 6c 69 6e 65 3b 20 |chars.pe|r line; |
|000002b0| 73 70 65 65 64 73 20 75 | 70 20 66 75 6c 6c 20 73 |speeds u|p full s|
|000002c0| 63 72 65 65 6e 20 65 64 | 69 74 6f 72 73 2c 20 27 |creen ed|itors, '|
|000002d0| 6d 6f 72 65 27 20 75 74 | 69 6c 69 74 69 65 73 2c |more' ut|ilities,|
|000002e0| 20 65 74 63 2e 0a 46 6f | 72 20 61 6c 6c 20 72 65 | etc..Fo|r all re|
|000002f0| 73 6f 6c 75 74 69 6f 6e | 73 3b 20 6e 6f 74 20 66 |solution|s; not f|
|00000300| 6f 72 20 47 45 4d 2c 20 | 6f 6e 6c 79 20 66 6f 72 |or GEM, |only for|
|00000310| 20 54 4f 53 2e 0a 54 68 | 65 20 63 6f 72 72 65 73 | TOS..Th|e corres|
|00000320| 70 6f 6e 64 69 6e 67 20 | 62 69 6e 61 72 79 20 69 |ponding |binary i|
|00000330| 73 20 73 65 6e 74 20 74 | 6f 20 74 68 65 20 6d 6f |s sent t|o the mo|
|00000340| 64 65 72 61 74 6f 72 20 | 6f 66 20 63 6f 6d 70 2e |derator |of comp.|
|00000350| 62 69 6e 61 72 69 65 73 | 2e 61 74 61 72 69 2e 73 |binaries|.atari.s|
|00000360| 74 2e 0a 54 68 65 20 70 | 72 6f 67 72 61 6d 20 77 |t..The p|rogram w|
|00000370| 61 73 20 61 73 73 65 6d | 62 6c 65 64 20 61 6e 64 |as assem|bled and|
|00000380| 20 6c 69 6e 6b 65 64 20 | 77 69 74 68 20 74 68 65 | linked |with the|
|00000390| 20 61 73 73 65 6d 62 6c | 65 72 20 61 6e 64 20 6c | assembl|er and l|
|000003a0| 69 6e 6b 65 72 20 66 72 | 6f 6d 20 74 68 65 0a 47 |inker fr|om the.G|
|000003b0| 53 54 2d 43 20 63 6f 6d | 70 69 6c 65 72 2e 0a 0a |ST-C com|piler...|
|000003c0| 46 6f 72 20 63 6f 72 72 | 65 73 70 6f 6e 64 65 6e |For corr|esponden|
|000003d0| 63 65 20 63 6f 6e 63 65 | 69 72 6e 69 6e 67 20 74 |ce conce|irning t|
|000003e0| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 28 62 75 67 |his prog|ram (bug|
|000003f0| 73 2c 20 71 75 65 73 74 | 69 6f 6e 73 20 65 74 63 |s, quest|ions etc|
|00000400| 2e 29 20 74 72 79 0a 0a | 20 20 20 20 20 20 4c 2e |.) try..| L.|
|00000410| 20 4a 2e 20 4d 2e 20 64 | 65 20 57 69 74 0a 20 20 | J. M. d|e Wit. |
|00000420| 20 20 20 20 4e 61 63 68 | 74 65 67 61 61 6c 6c 61 | Nach|tegaalla|
|00000430| 61 6e 20 37 0a 20 20 20 | 20 20 20 35 37 33 31 58 |an 7. | 5731X|
|00000440| 50 20 4d 69 65 72 6c 6f | 0a 20 20 20 20 20 20 48 |P Mierlo|. H|
|00000450| 6f 6c 6c 61 6e 64 0a 20 | 20 20 20 20 20 65 2d 6d |olland. | e-m|
|00000460| 61 69 6c 3a 20 2e 2e 21 | 6d 63 76 61 78 21 70 68 |ail: ..!|mcvax!ph|
|00000470| 69 6c 6d 64 73 21 6c 65 | 6f 0a 0a 2d 2d 2d 2d 2d |ilmds!le|o..-----|
|00000480| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000490| 2d 2d 2d 20 73 20 74 20 | 61 20 72 20 74 20 20 20 |--- s t |a r t |
|000004a0| 68 20 65 20 72 20 65 20 | 2d 2d 2d 2d 2d 2d 2d 2d |h e r e |--------|
|000004b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000004c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 2a 2a 2a 2a 2a 2a |--------|-.******|
|000004d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000004e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000004f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000500| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000510| 2a 2a 2a 2a 2a 2a 2a 2a | 0a 2a 20 20 20 20 20 20 |********|.* |
|00000520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000560| 20 20 20 20 20 20 2a 0a | 2a 20 20 20 20 73 63 72 | *.|* scr|
|00000570| 6f 6c 6c 2e 61 73 6d 20 | 20 76 65 72 73 69 6f 6e |oll.asm | version|
|00000580| 20 31 2e 30 20 6f 66 20 | 32 33 20 4a 75 6c 79 20 | 1.0 of |23 July |
|00000590| 31 39 38 38 20 20 20 20 | 28 43 29 20 4c 2e 4a 2e |1988 |(C) L.J.|
|000005a0| 4d 2e 20 64 65 20 57 69 | 74 20 31 39 38 38 20 20 |M. de Wi|t 1988 |
|000005b0| 20 20 20 20 20 2a 0a 2a | 20 20 20 20 20 20 20 20 | *.*| |
|000005c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000600| 20 20 20 20 2a 0a 2a 20 | 54 68 69 73 20 73 6f 66 | *.* |This sof|
|00000610| 74 77 61 72 65 20 6d 61 | 79 20 62 65 20 75 73 65 |tware ma|y be use|
|00000620| 64 20 61 6e 64 20 64 69 | 73 74 72 69 62 75 74 65 |d and di|stribute|
|00000630| 64 20 66 72 65 65 6c 79 | 20 69 66 20 6e 6f 74 20 |d freely| if not |
|00000640| 75 73 65 64 20 63 6f 6d | 6d 65 72 63 69 61 6c 6c |used com|merciall|
|00000650| 79 20 20 2a 0a 2a 20 61 | 6e 64 20 74 68 65 20 6f |y *.* a|nd the o|
|00000660| 72 69 67 69 6e 61 74 6f | 72 20 28 6d 65 29 20 69 |riginato|r (me) i|
|00000670| 73 20 6d 65 6e 74 69 6f | 6e 65 64 2e 20 20 20 20 |s mentio|ned. |
|00000680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000690| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006a0| 20 20 2a 0a 2a 20 20 20 | 20 20 20 20 20 20 20 20 | *.* | |
|000006b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006f0| 20 2a 0a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | *.*****|********|
|00000700| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000710| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000720| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000730| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000740| 2a 0a 2a 0a 2a 20 4e 41 | 4d 45 0a 2a 20 20 20 20 |*.*.* NA|ME.* |
|00000750| 73 63 72 6f 6c 6c 20 2d | 20 66 61 73 74 20 74 65 |scroll -| fast te|
|00000760| 78 74 20 73 63 72 6f 6c | 6c 69 6e 67 0a 2a 0a 2a |xt scrol|ling.*.*|
|00000770| 20 53 59 4e 54 41 58 0a | 2a 20 20 20 20 73 63 72 | SYNTAX.|* scr|
|00000780| 6f 6c 6c 2e 70 72 67 0a | 2a 0a 2a 20 44 45 53 43 |oll.prg.|*.* DESC|
|00000790| 52 49 50 54 49 4f 4e 0a | 2a 20 20 20 20 53 63 72 |RIPTION.|* Scr|
|000007a0| 6f 6c 6c 20 70 72 6f 76 | 69 64 65 73 20 66 6f 72 |oll prov|ides for|
|000007b0| 20 66 61 73 74 20 73 63 | 72 6f 6c 6c 69 6e 67 3b | fast sc|rolling;|
|000007c0| 20 74 68 69 73 20 69 73 | 20 61 63 68 69 65 76 65 | this is| achieve|
|000007d0| 64 20 62 79 20 75 73 69 | 6e 67 20 61 20 36 34 4b |d by usi|ng a 64K|
|000007e0| 0a 2a 20 20 20 20 62 75 | 66 66 65 72 20 66 6f 72 |.* bu|ffer for|
|000007f0| 20 73 63 72 65 65 6e 20 | 6d 65 6d 6f 72 79 20 61 | screen |memory a|
|00000800| 6e 64 20 63 68 61 6e 67 | 69 6e 67 20 74 68 65 20 |nd chang|ing the |
|00000810| 70 68 79 73 69 63 61 6c | 20 73 63 72 65 65 6e 20 |physical| screen |
|00000820| 6c 6f 63 61 74 69 6f 6e | 20 74 68 65 72 65 69 6e |location| therein|
|00000830| 2e 0a 2a 20 20 20 20 54 | 68 65 20 61 63 74 75 61 |..* T|he actua|
|00000840| 6c 20 63 68 61 6e 67 65 | 73 20 74 61 6b 65 20 70 |l change|s take p|
|00000850| 6c 61 63 65 20 61 74 20 | 74 68 65 20 72 65 63 65 |lace at |the rece|
|00000860| 69 70 74 20 6f 66 20 63 | 65 72 74 61 69 6e 20 65 |ipt of c|ertain e|
|00000870| 73 63 61 70 65 20 63 6f | 64 65 73 20 6f 72 0a 2a |scape co|des or.*|
|00000880| 20 20 20 20 63 68 61 72 | 61 63 74 65 72 73 20 74 | char|acters t|
|00000890| 68 61 74 20 77 6f 75 6c | 64 20 6d 61 6b 65 20 74 |hat woul|d make t|
|000008a0| 68 65 20 65 6e 74 69 72 | 65 20 64 69 73 70 6c 61 |he entir|e displa|
|000008b0| 79 20 73 63 72 6f 6c 6c | 2e 0a 2a 0a 2a 20 20 20 |y scroll|..*.* |
|000008c0| 20 53 63 72 6f 6c 6c 20 | 73 68 6f 75 6c 64 20 62 | Scroll |should b|
|000008d0| 65 20 69 6e 20 74 68 65 | 20 41 55 54 4f 20 66 6f |e in the| AUTO fo|
|000008e0| 6c 64 65 72 20 61 73 20 | 53 43 52 4f 4c 4c 2e 50 |lder as |SCROLL.P|
|000008f0| 52 47 20 73 6f 20 74 68 | 61 74 20 69 74 20 69 73 |RG so th|at it is|
|00000900| 0a 2a 20 20 20 20 69 6e | 73 74 61 6c 6c 65 64 20 |.* in|stalled |
|00000910| 6d 65 6d 6f 72 79 20 72 | 65 73 69 64 65 6e 74 20 |memory r|esident |
|00000920| 77 68 65 6e 20 74 68 65 | 20 73 79 73 74 65 6d 20 |when the| system |
|00000930| 69 73 20 6c 6f 61 64 65 | 64 2e 0a 2a 0a 2a 20 44 |is loade|d..*.* D|
|00000940| 45 43 49 53 49 4f 4e 53 | 0a 2a 20 20 20 20 54 68 |ECISIONS|.* Th|
|00000950| 65 20 65 78 74 72 61 20 | 73 74 6f 72 61 67 65 20 |e extra |storage |
|00000960| 6e 65 65 64 65 64 20 67 | 72 61 62 73 20 61 20 33 |needed g|rabs a 3|
|00000970| 33 4b 20 66 72 6f 6d 20 | 79 6f 75 72 20 66 72 65 |3K from |your fre|
|00000980| 65 20 6d 65 6d 2c 20 75 | 6e 6c 65 73 73 0a 2a 20 |e mem, u|nless.* |
|00000990| 20 20 20 74 68 65 20 6d | 65 6d 6f 72 79 20 63 61 | the m|emory ca|
|000009a0| 6e 6e 6f 74 20 62 65 20 | 72 65 73 65 72 76 65 64 |nnot be |reserved|
|000009b0| 20 61 64 6a 61 63 65 6e | 74 20 74 6f 20 74 68 65 | adjacen|t to the|
|000009c0| 20 6f 72 69 67 69 6e 61 | 6c 20 73 63 72 65 65 6e | origina|l screen|
|000009d0| 20 6d 65 6d 6f 72 79 2c | 0a 2a 20 20 20 20 69 6e | memory,|.* in|
|000009e0| 20 77 68 69 63 68 20 63 | 61 73 65 20 36 35 4b 20 | which c|ase 65K |
|000009f0| 69 73 20 6e 65 65 64 65 | 64 2e 0a 2a 20 20 20 20 |is neede|d..* |
|00000a00| 54 68 65 20 63 6f 6e 73 | 6f 6c 65 20 6f 75 74 70 |The cons|ole outp|
|00000a10| 75 74 20 76 65 63 74 6f | 72 20 61 74 20 34 61 38 |ut vecto|r at 4a8|
|00000a20| 20 69 73 20 75 73 65 64 | 20 74 6f 20 74 72 61 70 | is used| to trap|
|00000a30| 20 74 68 65 20 65 73 63 | 61 70 65 20 63 6f 64 65 | the esc|ape code|
|00000a40| 73 2e 0a 2a 20 20 20 20 | 41 6c 73 6f 20 74 68 65 |s..* |Also the|
|00000a50| 20 62 69 6f 73 20 76 65 | 63 74 6f 72 20 68 61 64 | bios ve|ctor had|
|00000a60| 20 74 6f 20 62 65 20 63 | 68 61 6e 67 65 64 20 28 | to be c|hanged (|
|00000a70| 61 20 70 69 74 79 29 3b | 0a 2a 20 20 20 20 74 68 |a pity);|.* th|
|00000a80| 69 73 20 69 73 20 6f 6e | 6c 79 20 6e 65 65 64 65 |is is on|ly neede|
|00000a90| 64 20 74 6f 20 62 65 20 | 61 62 6c 65 20 74 6f 20 |d to be |able to |
|00000aa0| 6c 6f 61 64 20 66 72 6f | 6d 20 41 55 54 4f 20 66 |load fro|m AUTO f|
|00000ab0| 6f 6c 64 65 72 73 3a 0a | 2a 20 20 20 20 74 68 65 |olders:.|* the|
|00000ac0| 20 63 6f 6e 5f 73 74 61 | 74 65 20 76 65 63 74 6f | con_sta|te vecto|
|00000ad0| 72 20 69 73 20 72 65 69 | 6e 69 74 69 61 74 65 64 |r is rei|nitiated|
|00000ae0| 20 77 68 65 6e 20 74 68 | 65 20 72 65 73 6f 6c 75 | when th|e resolu|
|00000af0| 74 69 6f 6e 20 63 68 61 | 6e 67 65 73 0a 2a 20 20 |tion cha|nges.* |
|00000b00| 20 20 54 68 65 20 70 72 | 6f 67 72 61 6d 20 6d 75 | The pr|ogram mu|
|00000b10| 73 74 20 72 65 73 69 64 | 65 20 69 6e 20 74 68 65 |st resid|e in the|
|00000b20| 20 63 75 72 72 65 6e 74 | 20 64 72 69 76 65 27 73 | current| drive's|
|00000b30| 20 41 55 54 4f 20 66 6f | 6c 64 65 72 20 74 6f 20 | AUTO fo|lder to |
|00000b40| 62 65 20 61 62 6c 65 0a | 2a 20 20 20 20 74 6f 20 |be able.|* to |
|00000b50| 66 69 6e 64 20 69 74 73 | 65 6c 66 2e 0a 0a 20 20 |find its|elf... |
|00000b60| 20 20 20 20 6d 6f 64 75 | 6c 65 20 20 73 63 72 6f | modu|le scro|
|00000b70| 6c 6c 0a 20 20 20 20 20 | 20 73 65 63 74 69 6f 6e |ll. | section|
|00000b80| 20 73 2e 63 63 6f 64 65 | 0a 0a 2a 20 63 68 61 72 | s.ccode|..* char|
|00000b90| 61 63 74 65 72 20 63 6f | 64 65 73 0a 6c 66 20 20 |acter co|des.lf |
|00000ba0| 20 20 20 20 20 65 71 75 | 20 20 20 31 30 0a 76 74 | equ| 10.vt|
|00000bb0| 20 20 20 20 20 20 20 65 | 71 75 20 20 20 31 31 0a | e|qu 11.|
|00000bc0| 66 66 20 20 20 20 20 20 | 20 65 71 75 20 20 20 31 |ff | equ 1|
|00000bd0| 32 0a 63 72 20 20 20 20 | 20 20 20 65 71 75 20 20 |2.cr | equ |
|00000be0| 20 31 33 0a 65 73 63 20 | 20 20 20 20 20 65 71 75 | 13.esc | equ|
|00000bf0| 20 20 20 32 37 0a 0a 2a | 20 73 63 72 69 6e 66 6f | 27..*| scrinfo|
|00000c00| 20 6f 66 66 73 65 74 73 | 0a 6d 61 78 63 6f 6c 20 | offsets|.maxcol |
|00000c10| 20 20 65 71 75 20 20 20 | 30 0a 6d 61 78 72 6f 77 | equ |0.maxrow|
|00000c20| 20 20 20 65 71 75 20 20 | 20 32 0a 62 70 72 6f 77 | equ | 2.bprow|
|00000c30| 20 20 20 20 65 71 75 20 | 20 20 34 0a 73 63 72 61 | equ | 4.scra|
|00000c40| 64 20 20 20 20 65 71 75 | 20 20 20 31 30 0a 63 6f |d equ| 10.co|
|00000c50| 6c 20 20 20 20 20 20 65 | 71 75 20 20 20 31 36 0a |l e|qu 16.|
|00000c60| 72 6f 77 20 20 20 20 20 | 20 65 71 75 20 20 20 31 |row | equ 1|
|00000c70| 38 0a 66 6c 61 67 20 20 | 20 20 20 65 71 75 20 20 |8.flag | equ |
|00000c80| 20 33 38 0a 0a 2a 20 73 | 79 73 74 65 6d 20 76 61 | 38..* s|ystem va|
|00000c90| 72 69 61 62 6c 65 73 0a | 76 5f 62 61 73 5f 61 64 |riables.|v_bas_ad|
|00000ca0| 20 20 20 65 71 75 20 20 | 20 24 34 34 65 0a 63 6f | equ | $44e.co|
|00000cb0| 6e 5f 73 74 61 74 65 20 | 20 65 71 75 20 20 20 24 |n_state | equ $|
|00000cc0| 34 61 38 0a 0a 2a 20 47 | 45 4d 44 4f 53 20 26 20 |4a8..* G|EMDOS & |
|00000cd0| 28 58 29 42 49 4f 53 20 | 73 74 75 66 66 0a 67 65 |(X)BIOS |stuff.ge|
|00000ce0| 6d 64 6f 73 20 20 20 65 | 71 75 20 20 20 31 0a 62 |mdos e|qu 1.b|
|00000cf0| 69 6f 73 20 20 20 20 20 | 65 71 75 20 20 20 31 33 |ios |equ 13|
|00000d00| 0a 78 62 69 6f 73 20 20 | 20 20 65 71 75 20 20 20 |.xbios | equ |
|00000d10| 31 34 0a 70 74 65 72 6d | 72 65 73 20 65 71 75 20 |14.pterm|res equ |
|00000d20| 20 20 24 33 31 0a 73 75 | 70 65 78 65 63 20 20 65 | $31.su|pexec e|
|00000d30| 71 75 20 20 20 33 38 0a | 73 65 74 65 78 63 20 20 |qu 38.|setexc |
|00000d40| 20 65 71 75 20 20 20 35 | 0a 73 65 74 73 63 72 65 | equ 5|.setscre|
|00000d50| 65 6e 20 65 71 75 20 20 | 35 0a 70 68 79 73 62 61 |en equ |5.physba|
|00000d60| 73 65 20 65 71 75 20 20 | 20 32 0a 73 65 74 62 6c |se equ | 2.setbl|
|00000d70| 6f 63 6b 20 65 71 75 20 | 20 20 24 34 61 0a 70 65 |ock equ | $4a.pe|
|00000d80| 78 65 63 20 20 20 20 65 | 71 75 20 20 20 24 34 62 |xec e|qu $4b|
|00000d90| 0a 0a 2a 20 64 69 76 65 | 72 73 0a 62 70 61 67 6c |..* dive|rs.bpagl|
|00000da0| 65 6e 20 20 65 71 75 20 | 20 20 24 31 30 30 0a 74 |en equ | $100.t|
|00000db0| 65 78 74 6c 65 6e 20 20 | 65 71 75 20 20 20 31 32 |extlen |equ 12|
|00000dc0| 0a 64 61 74 61 6c 65 6e | 20 20 65 71 75 20 20 20 |.datalen| equ |
|00000dd0| 32 30 0a 62 73 73 6c 65 | 6e 20 20 20 65 71 75 20 |20.bssle|n equ |
|00000de0| 20 20 32 38 0a 6c 69 6e | 65 61 30 20 20 20 65 71 | 28.lin|ea0 eq|
|00000df0| 75 20 20 20 24 61 30 30 | 30 0a 0a 73 63 72 69 6e |u $a00|0..scrin|
|00000e00| 69 74 0a 20 20 20 20 20 | 20 6d 6f 76 65 2e 6c 20 |it. | move.l |
|00000e10| 20 20 34 28 73 70 29 2c | 61 33 20 20 20 20 20 20 | 4(sp),|a3 |
|00000e20| 20 20 20 20 2a 20 62 61 | 73 65 70 61 67 65 20 73 | * ba|sepage s|
|00000e30| 74 61 72 74 0a 20 20 20 | 20 20 20 6d 6f 76 65 2e |tart. | move.|
|00000e40| 6c 20 20 20 23 62 70 61 | 67 6c 65 6e 2c 64 33 20 |l #bpa|glen,d3 |
|00000e50| 20 20 20 20 20 20 2a 20 | 62 61 73 65 20 70 61 67 | * |base pag|
|00000e60| 65 20 6c 65 6e 67 74 68 | 0a 20 20 20 20 20 20 61 |e length|. a|
|00000e70| 64 64 2e 6c 20 20 20 20 | 74 65 78 74 6c 65 6e 28 |dd.l |textlen(|
|00000e80| 61 33 29 2c 64 33 20 20 | 20 20 2a 20 2b 20 74 65 |a3),d3 | * + te|
|00000e90| 78 74 20 6c 65 6e 67 74 | 68 0a 20 20 20 20 20 20 |xt lengt|h. |
|00000ea0| 61 64 64 2e 6c 20 20 20 | 20 64 61 74 61 6c 65 6e |add.l | datalen|
|00000eb0| 28 61 33 29 2c 64 33 20 | 20 20 20 2a 20 2b 20 64 |(a3),d3 | * + d|
|00000ec0| 61 74 61 20 6c 65 6e 67 | 74 68 0a 20 20 20 20 20 |ata leng|th. |
|00000ed0| 20 61 64 64 2e 6c 20 20 | 20 20 62 73 73 6c 65 6e | add.l | bsslen|
|00000ee0| 28 61 33 29 2c 64 33 20 | 20 20 20 20 2a 20 2b 20 |(a3),d3 | * + |
|00000ef0| 62 73 73 20 6c 65 6e 67 | 74 68 0a 20 20 20 20 20 |bss leng|th. |
|00000f00| 20 61 64 64 2e 6c 20 20 | 20 20 23 32 35 36 2c 64 | add.l | #256,d|
|00000f10| 33 20 20 20 20 20 20 20 | 20 20 20 20 2a 20 2b 20 |3 | * + |
|00000f20| 72 6f 75 6e 64 69 6e 67 | 20 6c 65 6e 67 74 68 0a |rounding| length.|
|00000f30| 20 20 20 20 20 20 6d 6f | 76 65 2e 77 20 20 20 23 | mo|ve.w #|
|00000f40| 70 68 79 73 62 61 73 65 | 2c 2d 28 73 70 29 0a 20 |physbase|,-(sp). |
|00000f50| 20 20 20 20 20 74 72 61 | 70 20 20 20 20 20 23 78 | tra|p #x|
|00000f60| 62 69 6f 73 0a 20 20 20 | 20 20 20 61 64 64 71 2e |bios. | addq.|
|00000f70| 6c 20 20 20 23 32 2c 73 | 70 0a 20 20 20 20 20 20 |l #2,s|p. |
|00000f80| 6d 6f 76 65 2e 6c 20 20 | 20 64 30 2c 61 34 20 20 |move.l | d0,a4 |
|00000f90| 20 20 20 20 20 20 20 20 | 20 20 20 2a 20 53 74 61 | | * Sta|
|00000fa0| 72 74 20 70 68 79 73 69 | 63 61 6c 20 73 63 72 65 |rt physi|cal scre|
|00000fb0| 65 6e 20 6d 65 6d 6f 72 | 79 0a 20 20 20 20 20 20 |en memor|y. |
|00000fc0| 64 63 2e 77 20 20 20 20 | 20 6c 69 6e 65 61 30 0a |dc.w | linea0.|
|00000fd0| 20 20 20 20 20 20 73 75 | 62 61 2e 77 20 20 20 23 | su|ba.w #|
|00000fe0| 34 34 2c 61 30 0a 20 20 | 20 20 20 20 6c 65 61 2e |44,a0. | lea.|
|00000ff0| 6c 20 20 20 20 73 63 72 | 69 6e 66 6f 28 70 63 29 |l scr|info(pc)|
|00001000| 2c 61 31 0a 20 20 20 20 | 20 20 6d 6f 76 65 2e 6c |,a1. | move.l|
|00001010| 20 20 20 61 30 2c 28 61 | 31 29 20 20 20 20 20 20 | a0,(a|1) |
|00001020| 20 20 20 20 20 2a 20 73 | 74 61 72 74 20 73 63 72 | * s|tart scr|
|00001030| 65 65 6e 20 69 6e 66 6f | 20 74 6f 20 73 63 72 69 |een info| to scri|
|00001040| 6e 66 6f 0a 20 20 20 20 | 20 20 6d 6f 76 65 2e 6c |nfo. | move.l|
|00001050| 20 20 20 61 30 2c 61 32 | 20 20 20 20 20 20 20 20 | a0,a2| |
|00001060| 20 20 20 20 20 2a 20 61 | 6e 64 20 61 6c 73 6f 20 | * a|nd also |
|00001070| 61 32 0a 20 20 20 20 20 | 20 6d 6f 76 65 2e 77 20 |a2. | move.w |
|00001080| 20 20 6d 61 78 72 6f 77 | 28 61 32 29 2c 64 31 0a | maxrow|(a2),d1.|
|00001090| 20 20 20 20 20 20 61 64 | 64 71 2e 6c 20 20 20 23 | ad|dq.l #|
|000010a0| 31 2c 64 31 0a 20 20 20 | 20 20 20 6d 75 6c 75 2e |1,d1. | mulu.|
|000010b0| 77 20 20 20 62 70 72 6f | 77 28 61 32 29 2c 64 31 |w bpro|w(a2),d1|
|000010c0| 20 20 20 20 20 20 2a 20 | 73 63 72 65 65 6e 20 73 | * |screen s|
|000010d0| 69 7a 65 20 69 6e 74 6f | 20 64 31 0a 20 20 20 20 |ize into| d1. |
|000010e0| 20 20 6c 65 61 2e 6c 20 | 20 20 20 38 28 73 70 29 | lea.l | 8(sp)|
|000010f0| 2c 61 30 0a 20 20 20 20 | 20 20 63 6d 70 61 2e 6c |,a0. | cmpa.l|
|00001100| 20 20 20 61 34 2c 61 30 | 0a 20 20 20 20 20 20 62 | a4,a0|. b|
|00001110| 6e 65 2e 73 20 20 20 20 | 73 63 72 69 6e 73 74 61 |ne.s |scrinsta|
|00001120| 6c 6c 20 20 20 20 20 20 | 20 20 2a 20 6c 61 73 74 |ll | * last|
|00001130| 20 6c 6f 63 61 74 69 6f | 6e 20 6e 6f 74 20 73 74 | locatio|n not st|
|00001140| 61 72 74 20 6f 66 20 70 | 68 79 73 2e 20 73 63 72 |art of p|hys. scr|
|00001150| 65 65 6e 20 6d 65 6d 2e | 0a 20 20 20 20 20 20 74 |een mem.|. t|
|00001160| 73 74 2e 62 20 20 20 20 | 31 32 38 28 61 33 29 0a |st.b |128(a3).|
|00001170| 20 20 20 20 20 20 62 6e | 65 2e 73 20 20 20 20 73 | bn|e.s s|
|00001180| 63 72 69 6e 73 74 61 6c | 6c 20 20 20 20 20 20 20 |crinstal|l |
|00001190| 20 2a 20 50 72 6f 67 2e | 20 68 61 64 20 61 72 67 | * Prog.| had arg|
|000011a0| 75 6d 65 6e 74 3a 20 63 | 61 6c 6c 65 64 20 74 68 |ument: c|alled th|
|000011b0| 65 20 73 65 63 6f 6e 64 | 20 74 69 6d 65 0a 20 20 |e second| time. |
|000011c0| 20 20 20 20 61 64 64 2e | 6c 20 20 20 20 64 31 2c | add.|l d1,|
|000011d0| 64 33 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a |d3 | *|
|000011e0| 20 61 64 64 20 61 20 73 | 63 72 65 65 6e 20 73 69 | add a s|creen si|
|000011f0| 7a 65 0a 20 20 20 20 20 | 20 73 75 62 2e 6c 20 20 |ze. | sub.l |
|00001200| 20 20 64 33 2c 61 30 20 | 20 20 20 20 20 20 20 20 | d3,a0 | |
|00001210| 20 20 20 20 2a 20 74 68 | 69 73 20 77 69 6c 6c 20 | * th|is will |
|00001220| 62 65 20 74 61 6b 65 6e | 20 6f 66 66 20 63 75 72 |be taken| off cur|
|00001230| 72 65 6e 74 20 70 72 6f | 67 20 61 72 65 61 0a 20 |rent pro|g area. |
|00001240| 20 20 20 20 20 6d 6f 76 | 65 2e 6c 20 20 20 61 30 | mov|e.l a0|
|00001250| 2c 73 70 0a 20 20 20 20 | 20 20 73 75 62 61 2e 6c |,sp. | suba.l|
|00001260| 20 20 20 61 33 2c 61 30 | 0a 20 20 20 20 20 20 6d | a3,a0|. m|
|00001270| 6f 76 65 2e 6c 20 20 20 | 61 30 2c 2d 28 73 70 29 |ove.l |a0,-(sp)|
|00001280| 0a 20 20 20 20 20 20 6d | 6f 76 65 2e 6c 20 20 20 |. m|ove.l |
|00001290| 61 33 2c 2d 28 73 70 29 | 0a 20 20 20 20 20 20 6d |a3,-(sp)|. m|
|000012a0| 6f 76 65 2e 77 20 20 20 | 23 30 2c 2d 28 73 70 29 |ove.w |#0,-(sp)|
|000012b0| 0a 20 20 20 20 20 20 6d | 6f 76 65 2e 77 20 20 20 |. m|ove.w |
|000012c0| 23 73 65 74 62 6c 6f 63 | 6b 2c 2d 28 73 70 29 0a |#setbloc|k,-(sp).|
|000012d0| 20 20 20 20 20 20 74 72 | 61 70 20 20 20 20 20 23 | tr|ap #|
|000012e0| 67 65 6d 64 6f 73 20 20 | 20 20 20 20 20 20 20 20 |gemdos | |
|000012f0| 20 2a 20 4c 65 61 76 69 | 6e 67 20 6a 75 73 74 20 | * Leavi|ng just |
|00001300| 65 6e 6f 75 67 68 20 66 | 6f 72 20 6e 65 78 74 20 |enough f|or next |
|00001310| 6c 6f 61 64 20 6f 66 20 | 6d 79 73 65 6c 66 0a 20 |load of |myself. |
|00001320| 20 20 20 20 20 6c 65 61 | 2e 6c 20 20 20 20 31 32 | lea|.l 12|
|00001330| 28 73 70 29 2c 73 70 0a | 20 20 20 20 20 20 70 65 |(sp),sp.| pe|
|00001340| 61 20 20 20 20 20 20 6e | 75 6c 6c 73 74 72 0a 20 |a n|ullstr. |
|00001350| 20 20 20 20 20 70 65 61 | 20 20 20 20 20 20 61 72 | pea| ar|
|00001360| 67 73 74 72 0a 20 20 20 | 20 20 20 70 65 61 20 20 |gstr. | pea |
|00001370| 20 20 20 20 70 72 6f 67 | 6e 61 6d 65 0a 20 20 20 | prog|name. |
|00001380| 20 20 20 6d 6f 76 65 2e | 77 20 20 20 23 30 2c 2d | move.|w #0,-|
|00001390| 28 73 70 29 0a 20 20 20 | 20 20 20 6d 6f 76 65 2e |(sp). | move.|
|000013a0| 77 20 20 20 23 70 65 78 | 65 63 2c 2d 28 73 70 29 |w #pex|ec,-(sp)|
|000013b0| 0a 20 20 20 20 20 20 74 | 72 61 70 20 20 20 20 20 |. t|rap |
|000013c0| 23 67 65 6d 64 6f 73 20 | 20 20 20 20 20 20 20 20 |#gemdos | |
|000013d0| 20 20 2a 20 6c 6f 61 64 | 20 26 20 65 78 65 63 20 | * load| & exec |
|000013e0| 6d 79 73 65 6c 66 20 77 | 69 74 68 20 61 20 6e 6f |myself w|ith a no|
|000013f0| 6e 7a 65 72 6f 20 61 72 | 67 6c 69 73 74 0a 20 20 |nzero ar|glist. |
|00001400| 20 20 20 20 6c 65 61 2e | 6c 20 20 20 20 31 32 28 | lea.|l 12(|
|00001410| 73 70 29 2c 73 70 0a 20 | 20 20 20 20 20 63 6c 72 |sp),sp. | clr|
|00001420| 2e 77 20 20 20 20 2d 28 | 73 70 29 0a 20 20 20 20 |.w -(|sp). |
|00001430| 20 20 74 72 61 70 20 20 | 20 20 20 23 67 65 6d 64 | trap | #gemd|
|00001440| 6f 73 20 20 20 20 20 20 | 20 20 20 20 20 2a 20 66 |os | * f|
|00001450| 69 6e 69 73 68 65 64 0a | 0a 73 63 72 69 6e 73 74 |inished.|.scrinst|
|00001460| 61 6c 6c 0a 20 20 20 20 | 20 20 6c 65 61 2e 6c 20 |all. | lea.l |
|00001470| 20 20 20 38 28 73 70 29 | 2c 61 30 0a 20 20 20 20 | 8(sp)|,a0. |
|00001480| 20 20 63 6d 70 61 2e 6c | 20 20 20 61 34 2c 61 30 | cmpa.l| a4,a0|
|00001490| 0a 20 20 20 20 20 20 62 | 6e 65 2e 73 20 20 20 20 |. b|ne.s |
|000014a0| 6e 6f 74 61 74 74 6f 70 | 20 20 20 20 20 20 20 20 |notattop| |
|000014b0| 20 20 2a 20 63 75 72 72 | 65 6e 74 20 6d 65 6d 20 | * curr|ent mem |
|000014c0| 6e 6f 74 20 61 64 6a 61 | 63 65 6e 74 20 74 6f 20 |not adja|cent to |
|000014d0| 70 68 79 73 2e 20 73 63 | 72 65 65 6e 20 6d 65 6d |phys. sc|reen mem|
|000014e0| 2e 0a 61 74 74 6f 70 0a | 20 20 20 20 20 20 73 75 |..attop.| su|
|000014f0| 62 61 2e 6c 20 20 20 61 | 33 2c 61 30 0a 20 20 20 |ba.l a|3,a0. |
|00001500| 20 20 20 6d 6f 76 65 2e | 6c 20 20 20 61 30 2c 64 | move.|l a0,d|
|00001510| 33 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 20 |3 | * |
|00001520| 64 33 20 3a 20 6a 75 73 | 74 20 61 6c 6c 20 77 65 |d3 : jus|t all we|
|00001530| 27 76 65 20 67 6f 74 0a | 20 20 20 20 20 20 6c 65 |'ve got.| le|
|00001540| 61 2e 6c 20 20 20 20 74 | 6f 70 62 61 73 65 28 70 |a.l t|opbase(p|
|00001550| 63 29 2c 61 30 0a 20 20 | 20 20 20 20 6d 6f 76 65 |c),a0. | move|
|00001560| 2e 6c 20 20 20 61 34 2c | 28 61 30 29 20 20 20 20 |.l a4,|(a0) |
|00001570| 20 20 20 20 20 20 20 2a | 20 63 75 72 72 65 6e 74 | *| current|
|00001580| 20 70 68 79 73 20 73 63 | 72 65 65 6e 20 6d 65 6d | phys sc|reen mem|
|00001590| 20 62 65 63 6f 6d 65 73 | 20 74 6f 70 20 62 61 73 | becomes| top bas|
|000015a0| 65 0a 20 20 20 20 20 20 | 73 75 62 2e 6c 20 20 20 |e. |sub.l |
|000015b0| 20 64 31 2c 61 34 0a 20 | 20 20 20 20 20 6c 65 61 | d1,a4. | lea|
|000015c0| 2e 6c 20 20 20 20 62 6f | 74 62 61 73 65 28 70 63 |.l bo|tbase(pc|
|000015d0| 29 2c 61 30 20 20 20 20 | 2a 20 61 6e 64 20 62 6f |),a0 |* and bo|
|000015e0| 74 62 61 73 65 20 61 20 | 73 63 72 65 65 6e 20 27 |tbase a |screen '|
|000015f0| 6c 6f 77 65 72 27 0a 20 | 20 20 20 20 20 6d 6f 76 |lower'. | mov|
|00001600| 65 2e 6c 20 20 20 61 34 | 2c 28 61 30 29 0a 20 20 |e.l a4|,(a0). |
|00001610| 20 20 20 20 62 72 61 2e | 73 20 20 20 20 65 6e 64 | bra.|s end|
|00001620| 63 61 6c 63 0a 6e 6f 74 | 61 74 74 6f 70 0a 20 20 |calc.not|attop. |
|00001630| 20 20 20 20 6d 6f 76 65 | 2e 6c 20 20 20 61 33 2c | move|.l a3,|
|00001640| 64 30 0a 20 20 20 20 20 | 20 61 64 64 2e 6c 20 20 |d0. | add.l |
|00001650| 20 20 64 33 2c 64 30 0a | 20 20 20 20 20 20 63 6c | d3,d0.| cl|
|00001660| 72 2e 62 20 20 20 20 64 | 30 20 20 20 20 20 20 20 |r.b d|0 |
|00001670| 20 20 20 20 20 20 20 20 | 20 2a 20 41 64 6a 75 73 | | * Adjus|
|00001680| 74 20 66 6f 72 20 32 35 | 36 20 62 79 74 65 20 62 |t for 25|6 byte b|
|00001690| 6f 75 6e 64 61 72 79 0a | 20 20 20 20 20 20 6c 65 |oundary.| le|
|000016a0| 61 2e 6c 20 20 20 20 62 | 6f 74 62 61 73 65 28 70 |a.l b|otbase(p|
|000016b0| 63 29 2c 61 30 0a 20 20 | 20 20 20 20 6d 6f 76 65 |c),a0. | move|
|000016c0| 2e 6c 20 20 20 64 30 2c | 28 61 30 29 20 20 20 20 |.l d0,|(a0) |
|000016d0| 20 20 20 20 20 20 20 2a | 20 61 64 64 72 65 73 73 | *| address|
|000016e0| 20 6c 6f 77 65 73 74 20 | 73 63 72 65 65 6e 0a 20 | lowest |screen. |
|000016f0| 20 20 20 20 20 61 64 64 | 2e 6c 20 20 20 20 64 31 | add|.l d1|
|00001700| 2c 64 30 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,d0 | |
|00001710| 2a 20 61 20 73 63 72 65 | 65 6e 20 27 68 69 67 68 |* a scre|en 'high|
|00001720| 65 72 27 0a 20 20 20 20 | 20 20 6c 65 61 2e 6c 20 |er'. | lea.l |
|00001730| 20 20 20 74 6f 70 62 61 | 73 65 28 70 63 29 2c 61 | topba|se(pc),a|
|00001740| 30 0a 20 20 20 20 20 20 | 6d 6f 76 65 2e 6c 20 20 |0. |move.l |
|00001750| 20 64 30 2c 28 61 30 29 | 20 20 20 20 20 20 20 20 | d0,(a0)| |
|00001760| 20 20 20 2a 20 61 64 64 | 72 65 73 73 20 68 69 67 | * add|ress hig|
|00001770| 68 65 73 74 20 73 63 72 | 65 65 6e 0a 20 20 20 20 |hest scr|een. |
|00001780| 20 20 61 64 64 2e 6c 20 | 20 20 20 64 31 2c 64 33 | add.l | d1,d3|
|00001790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2a 20 61 | | * a|
|000017a0| 64 64 20 61 20 73 63 72 | 65 65 6e 27 73 20 6c 65 |dd a scr|een's le|
|000017b0| 6e 67 74 68 20 74 6f 20 | 6d 65 6d 20 6e 65 65 64 |ngth to |mem need|
|000017c0| 65 64 0a 20 20 20 20 20 | 20 61 64 64 2e 6c 20 20 |ed. | add.l |
|000017d0| 20 20 64 31 2c 64 33 20 | 20 20 20 20 20 20 20 20 | d1,d3 | |
|000017e0| 20 20 20 20 2a 20 61 6e | 64 20 61 6e 6f 74 68 65 | * an|d anothe|
|000017f0| 72 20 6f 6e 65 0a 65 6e | 64 63 61 6c 63 0a 20 20 |r one.en|dcalc. |
|00001800| 20 20 20 20 70 65 61 20 | 20 20 20 20 20 73 65 74 | pea | set|
|00001810| 76 65 63 74 28 70 63 29 | 0a 20 20 20 20 20 20 6d |vect(pc)|. m|
|00001820| 6f 76 65 2e 77 20 20 20 | 23 73 75 70 65 78 65 63 |ove.w |#supexec|
|00001830| 2c 2d 28 73 70 29 0a 20 | 20 20 20 20 20 74 72 61 |,-(sp). | tra|
|00001840| 70 20 20 20 20 20 23 78 | 62 69 6f 73 20 20 20 20 |p #x|bios |
|00001850| 20 20 20 20 20 20 20 20 | 2a 20 73 65 74 20 6e 65 | |* set ne|
|00001860| 77 20 63 6f 6e 73 6f 6c | 65 20 6f 75 74 70 75 74 |w consol|e output|
|00001870| 20 76 65 63 74 6f 72 0a | 20 20 20 20 20 20 61 64 | vector.| ad|
|00001880| 64 71 2e 6c 20 20 20 23 | 36 2c 73 70 0a 20 20 20 |dq.l #|6,sp. |
|00001890| 20 20 20 70 65 61 20 20 | 20 20 20 20 6e 65 77 62 | pea | newb|
|000018a0| 69 6f 73 28 70 63 29 0a | 20 20 20 20 20 20 6d 6f |ios(pc).| mo|
|000018b0| 76 65 2e 77 20 20 20 23 | 24 32 64 2c 2d 28 73 70 |ve.w #|$2d,-(sp|
|000018c0| 29 0a 20 20 20 20 20 20 | 6d 6f 76 65 2e 77 20 20 |). |move.w |
|000018d0| 20 23 73 65 74 65 78 63 | 2c 2d 28 73 70 29 0a 20 | #setexc|,-(sp). |
|000018e0| 20 20 20 20 20 74 72 61 | 70 20 20 20 20 20 23 62 | tra|p #b|
|000018f0| 69 6f 73 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ios | |
|00001900| 2a 20 53 65 74 20 6e 65 | 77 20 42 49 4f 53 20 76 |* Set ne|w BIOS v|
|00001910| 65 63 74 6f 72 0a 20 20 | 20 20 20 20 61 64 64 71 |ector. | addq|
|00001920| 2e 6c 20 20 20 23 38 2c | 73 70 0a 20 20 20 20 20 |.l #8,|sp. |
|00001930| 20 6c 65 61 2e 6c 20 20 | 20 20 6f 6c 64 62 69 6f | lea.l | oldbio|
|00001940| 73 28 70 63 29 2c 61 30 | 0a 20 20 20 20 20 20 6d |s(pc),a0|. m|
|00001950| 6f 76 65 2e 6c 20 20 20 | 64 30 2c 28 61 30 29 20 |ove.l |d0,(a0) |
|00001960| 20 20 20 20 20 20 20 20 | 20 20 2a 20 53 61 76 65 | | * Save|
|00001970| 20 6f 6c 64 20 6f 6e 65 | 0a 20 20 20 20 20 20 6d | old one|. m|
|00001980| 6f 76 65 2e 6c 20 20 20 | 74 6f 70 62 61 73 65 28 |ove.l |topbase(|
|00001990| 70 63 29 2c 64 30 0a 20 | 20 20 20 20 20 6d 6f 76 |pc),d0. | mov|
|000019a0| 65 2e 77 20 20 20 23 2d | 31 2c 2d 28 73 70 29 0a |e.w #-|1,-(sp).|
|000019b0| 20 20 20 20 20 20 6d 6f | 76 65 2e 6c 20 20 20 64 | mo|ve.l d|
|000019c0| 30 2c 2d 28 73 70 29 0a | 20 20 20 20 20 20 6d 6f |0,-(sp).| mo|
|000019d0| 76 65 2e 6c 20 20 20 64 | 30 2c 2d 28 73 70 29 0a |ve.l d|0,-(sp).|
|000019e0| 20 20 20 20 20 20 6d 6f | 76 65 2e 77 20 20 20 23 | mo|ve.w #|
|000019f0| 73 65 74 73 63 72 65 65 | 6e 2c 2d 28 73 70 29 0a |setscree|n,-(sp).|
|00001a00| 20 20 20 20 20 20 74 72 | 61 70 20 20 20 20 20 23 | tr|ap #|
|00001a10| 78 62 69 6f 73 20 20 20 | 20 20 20 20 20 20 20 20 |xbios | |
|00001a20| 20 2a 20 6d 61 6b 65 20 | 68 69 67 68 65 73 74 20 | * make |highest |
|00001a30| 73 63 72 65 65 6e 20 63 | 75 72 72 65 6e 74 0a 20 |screen c|urrent. |
|00001a40| 20 20 20 20 20 6c 65 61 | 2e 6c 20 20 20 20 31 32 | lea|.l 12|
|00001a50| 28 73 70 29 2c 73 70 0a | 20 20 20 20 20 20 63 6c |(sp),sp.| cl|
|00001a60| 72 2e 77 20 20 20 20 2d | 28 73 70 29 20 20 20 20 |r.w -|(sp) |
|00001a70| 20 20 20 20 20 20 20 20 | 20 2a 20 72 65 74 75 72 | | * retur|
|00001a80| 6e 20 76 61 6c 75 65 3a | 20 30 20 66 6f 72 20 73 |n value:| 0 for s|
|00001a90| 75 63 63 65 73 73 0a 20 | 20 20 20 20 20 6d 6f 76 |uccess. | mov|
|00001aa0| 65 2e 6c 20 20 20 64 33 | 2c 2d 28 73 70 29 20 20 |e.l d3|,-(sp) |
|00001ab0| 20 20 20 20 20 20 20 20 | 2a 20 23 20 62 79 74 65 | |* # byte|
|00001ac0| 73 20 74 6f 20 6b 65 65 | 70 0a 20 20 20 20 20 20 |s to kee|p. |
|00001ad0| 6d 6f 76 65 2e 77 20 20 | 20 23 70 74 65 72 6d 72 |move.w | #ptermr|
|00001ae0| 65 73 2c 2d 28 73 70 29 | 20 20 20 2a 20 6b 65 65 |es,-(sp)| * kee|
|00001af0| 70 20 70 72 6f 63 65 73 | 73 0a 20 20 20 20 20 20 |p proces|s. |
|00001b00| 74 72 61 70 20 20 20 20 | 20 23 67 65 6d 64 6f 73 |trap | #gemdos|
|00001b10| 20 20 20 20 20 20 20 20 | 20 20 20 2a 20 73 74 6f | | * sto|
|00001b20| 70 73 20 68 65 72 65 2e | 2e 2e 0a 0a 2a 20 4e 65 |ps here.|....* Ne|
|00001b30| 77 20 62 69 6f 73 20 72 | 6f 75 74 69 6e 65 3b 20 |w bios r|outine; |
|00001b40| 6f 6e 6c 79 20 73 65 74 | 73 20 63 6f 6e 5f 73 74 |only set|s con_st|
|00001b50| 61 74 65 20 74 6f 20 70 | 6f 69 6e 74 20 74 6f 20 |ate to p|oint to |
|00001b60| 6e 65 77 63 6f 6e 73 6f | 6c 65 20 69 66 20 6e 6f |newconso|le if no|
|00001b70| 74 20 61 6c 72 65 61 64 | 79 0a 2a 20 73 61 76 69 |t alread|y.* savi|
|00001b80| 6e 67 20 74 68 65 20 6f | 6c 64 20 76 61 6c 75 65 |ng the o|ld value|
|00001b90| 2e 0a 6e 65 77 62 69 6f | 73 0a 20 20 20 20 20 20 |..newbio|s. |
|00001ba0| 6c 65 61 2e 6c 20 20 20 | 20 6e 65 77 63 6f 6e 73 |lea.l | newcons|
|00001bb0| 6f 6c 65 28 70 63 29 2c | 61 30 0a 20 20 20 20 20 |ole(pc),|a0. |
|00001bc0| 20 63 6d 70 61 2e 6c 20 | 20 20 63 6f 6e 5f 73 74 | cmpa.l | con_st|
|00001bd0| 61 74 65 2c 61 30 0a 20 | 20 20 20 20 20 62 65 71 |ate,a0. | beq|
|00001be0| 2e 73 20 20 20 20 6e 65 | 77 73 61 6d 65 0a 20 20 |.s ne|wsame. |
|00001bf0| 20 20 20 20 62 73 72 20 | 20 20 20 20 20 73 65 74 | bsr | set|
|00001c00| 76 65 63 74 20 20 20 20 | 20 20 20 20 20 20 20 2a |vect | *|
|00001c10| 20 53 65 74 20 63 6f 6e | 5f 73 74 61 74 65 20 69 | Set con|_state i|
|00001c20| 66 20 69 74 20 77 61 73 | 20 6e 6f 74 20 6e 65 77 |f it was| not new|
|00001c30| 63 6f 6e 73 6f 6c 65 0a | 6e 65 77 73 61 6d 65 0a |console.|newsame.|
|00001c40| 20 20 20 20 20 20 6d 6f | 76 65 61 2e 6c 20 20 6f | mo|vea.l o|
|00001c50| 6c 64 62 69 6f 73 28 70 | 63 29 2c 61 30 0a 20 20 |ldbios(p|c),a0. |
|00001c60| 20 20 20 20 6a 6d 70 20 | 20 20 20 20 20 28 61 30 | jmp | (a0|
|00001c70| 29 0a 0a 2a 20 54 68 69 | 73 20 69 73 20 74 68 65 |)..* Thi|s is the|
|00001c80| 20 72 6f 75 74 69 6e 65 | 20 74 68 61 74 20 63 6f | routine| that co|
|00001c90| 6e 5f 73 74 61 74 65 20 | 77 69 6c 6c 20 61 6c 77 |n_state |will alw|
|00001ca0| 61 79 73 20 70 6f 69 6e | 74 20 74 6f 2c 20 65 78 |ays poin|t to, ex|
|00001cb0| 63 65 70 74 0a 2a 20 77 | 68 65 6e 20 70 72 69 6e |cept.* w|hen prin|
|00001cc0| 74 69 6e 67 20 63 68 61 | 72 61 63 74 65 72 73 20 |ting cha|racters |
|00001cd0| 66 72 6f 6d 20 77 69 74 | 68 69 6e 20 74 68 65 20 |from wit|hin the |
|00001ce0| 72 6f 75 74 69 6e 65 20 | 69 74 73 65 6c 66 2e 0a |routine |itself..|
|00001cf0| 6e 65 77 63 6f 6e 73 6f | 6c 65 0a 20 20 20 20 20 |newconso|le. |
|00001d00| 20 6d 6f 76 65 2e 6c 20 | 20 20 63 76 73 61 76 28 | move.l | cvsav(|
|00001d10| 70 63 29 2c 63 6f 6e 5f | 73 74 61 74 65 20 2a 20 |pc),con_|state * |
|00001d20| 72 65 73 74 6f 72 65 20 | 6f 72 69 67 69 6e 61 6c |restore |original|
|00001d30| 20 76 65 63 74 6f 72 0a | 20 20 20 20 20 20 6d 6f | vector.| mo|
|00001d40| 76 65 2e 77 20 20 20 64 | 31 2c 2d 28 73 70 29 20 |ve.w d|1,-(sp) |
|00001d50| 20 20 20 20 20 20 20 20 | 20 2a 20 73 61 76 65 20 | | * save |
|00001d60| 63 68 61 72 61 63 74 65 | 72 20 74 6f 20 62 65 20 |characte|r to be |
|00001d70| 70 72 69 6e 74 65 64 20 | 6f 6e 20 74 68 65 20 73 |printed |on the s|
|00001d80| 74 61 63 6b 0a 20 20 20 | 20 20 20 6d 6f 76 65 61 |tack. | movea|
|00001d90| 2e 6c 20 20 73 63 72 69 | 6e 66 6f 28 70 63 29 2c |.l scri|nfo(pc),|
|00001da0| 61 31 0a 20 20 20 20 20 | 20 6c 65 61 2e 6c 20 20 |a1. | lea.l |
|00001db0| 20 20 68 61 64 65 73 63 | 28 70 63 29 2c 61 30 0a | hadesc|(pc),a0.|
|00001dc0| 20 20 20 20 20 20 74 73 | 74 2e 62 20 20 20 20 28 | ts|t.b (|
|00001dd0| 61 30 29 0a 20 20 20 20 | 20 20 62 65 71 2e 73 20 |a0). | beq.s |
|00001de0| 20 20 20 6e 6f 65 73 63 | 20 20 20 20 20 20 20 20 | noesc| |
|00001df0| 20 20 20 20 20 2a 20 49 | 66 20 70 72 65 76 69 6f | * I|f previo|
|00001e00| 75 73 20 63 68 61 72 20 | 77 61 73 20 6e 6f 74 20 |us char |was not |
|00001e10| 65 73 63 61 70 65 3b 20 | 65 6c 73 65 20 2e 2e 2e |escape; |else ...|
|00001e20| 0a 20 20 20 20 20 20 73 | 66 2e 62 20 20 20 20 20 |. s|f.b |
|00001e30| 28 61 30 29 20 20 20 20 | 20 20 20 20 20 20 20 20 |(a0) | |
|00001e40| 20 20 2a 20 52 65 73 65 | 74 20 65 73 63 61 70 65 | * Rese|t escape|
|00001e50| 20 66 6c 61 67 0a 20 20 | 20 20 20 20 74 73 74 2e | flag. | tst.|
|00001e60| 77 20 20 20 20 72 6f 77 | 28 61 31 29 0a 20 20 20 |w row|(a1). |
|00001e70| 20 20 20 62 6e 65 2e 73 | 20 20 20 20 6e 6f 5f 30 | bne.s| no_0|
|00001e80| 72 6f 77 20 20 20 20 20 | 20 20 20 20 20 20 2a 20 |row | * |
|00001e90| 49 66 20 63 75 72 73 6f | 72 20 6e 6f 74 20 6f 6e |If curso|r not on|
|00001ea0| 20 72 6f 77 20 30 0a 20 | 20 20 20 20 20 63 6d 70 | row 0. | cmp|
|00001eb0| 2e 77 20 20 20 20 23 27 | 49 27 2c 64 31 0a 20 20 |.w #'|I',d1. |
|00001ec0| 20 20 20 20 62 6e 65 2e | 73 20 20 20 20 6e 6f 74 | bne.|s not|
|00001ed0| 5f 69 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a |_i | *|
|00001ee0| 20 49 66 20 6e 6f 74 20 | 45 53 43 20 49 0a 20 20 | If not |ESC I. |
|00001ef0| 20 20 20 20 62 73 72 20 | 20 20 20 20 20 73 63 72 | bsr | scr|
|00001f00| 5f 64 6f 77 6e 20 20 20 | 20 20 20 20 20 20 20 2a |_down | *|
|00001f10| 20 65 6c 73 65 20 73 63 | 72 6f 6c 6c 20 64 6f 77 | else sc|roll dow|
|00001f20| 6e 0a 20 20 20 20 20 20 | 6d 6f 76 65 2e 77 20 20 |n. |move.w |
|00001f30| 20 23 65 73 63 2c 64 31 | 0a 20 20 20 20 20 20 62 | #esc,d1|. b|
|00001f40| 73 72 20 20 20 20 20 20 | 63 68 61 72 6f 75 74 20 |sr |charout |
|00001f50| 20 20 20 20 20 20 20 20 | 20 20 2a 20 61 6e 64 20 | | * and |
|00001f60| 70 72 69 6e 74 20 74 68 | 65 20 45 53 43 0a 20 20 |print th|e ESC. |
|00001f70| 20 20 20 20 6d 6f 76 65 | 2e 77 20 20 20 23 27 49 | move|.w #'I|
|00001f80| 27 2c 64 31 0a 20 20 20 | 20 20 20 62 73 72 20 20 |',d1. | bsr |
|00001f90| 20 20 20 20 63 68 61 72 | 6f 75 74 20 20 20 20 20 | char|out |
|00001fa0| 20 20 20 20 20 20 2a 20 | 61 6e 64 20 74 68 65 20 | * |and the |
|00001fb0| 49 0a 20 20 20 20 20 20 | 62 72 61 20 20 20 20 20 |I. |bra |
|00001fc0| 20 6e 65 77 64 6f 6e 65 | 0a 6e 6f 74 5f 69 0a 20 | newdone|.not_i. |
|00001fd0| 20 20 20 20 20 63 6d 70 | 2e 77 20 20 20 20 23 27 | cmp|.w #'|
|00001fe0| 4c 27 2c 64 31 0a 20 20 | 20 20 20 20 62 6e 65 2e |L',d1. | bne.|
|00001ff0| 73 20 20 20 20 6e 6f 74 | 5f 6c 20 20 20 20 20 20 |s not|_l |
|00002000| 20 20 20 20 20 20 20 2a | 20 49 66 20 6e 6f 74 20 | *| If not |
|00002010| 45 53 43 20 4c 0a 20 20 | 20 20 20 20 62 73 72 20 |ESC L. | bsr |
|00002020| 20 20 20 20 20 73 63 72 | 5f 64 6f 77 6e 20 20 20 | scr|_down |
|00002030| 20 20 20 20 20 20 20 2a | 20 65 6c 73 65 20 73 63 | *| else sc|
|00002040| 72 6f 6c 6c 20 64 6f 77 | 6e 0a 20 20 20 20 20 20 |roll dow|n. |
|00002050| 6d 6f 76 65 2e 77 20 20 | 20 23 65 73 63 2c 64 31 |move.w | #esc,d1|
|00002060| 0a 20 20 20 20 20 20 62 | 73 72 20 20 20 20 20 20 |. b|sr |
|00002070| 63 68 61 72 6f 75 74 20 | 20 20 20 20 20 20 20 20 |charout | |
|00002080| 20 20 2a 20 61 6e 64 20 | 70 72 69 6e 74 20 74 68 | * and |print th|
|00002090| 65 20 45 53 43 0a 20 20 | 20 20 20 20 6d 6f 76 65 |e ESC. | move|
|000020a0| 2e 77 20 20 20 23 27 48 | 27 2c 64 31 0a 20 20 20 |.w #'H|',d1. |
|000020b0| 20 20 20 62 73 72 20 20 | 20 20 20 20 63 68 61 72 | bsr | char|
|000020c0| 6f 75 74 20 20 20 20 20 | 20 20 20 20 20 20 2a 20 |out | * |
|000020d0| 61 6e 64 20 61 20 48 20 | 28 63 75 72 73 6f 72 20 |and a H |(cursor |
|000020e0| 68 6f 6d 65 29 0a 20 20 | 20 20 20 20 62 72 61 2e |home). | bra.|
|000020f0| 73 20 20 20 20 6e 65 77 | 64 6f 6e 65 0a 6e 6f 74 |s new|done.not|
|00002100| 5f 6c 0a 20 20 20 20 20 | 20 63 6d 70 2e 77 20 20 |_l. | cmp.w |
|00002110| 20 20 23 27 4d 27 2c 64 | 31 0a 20 20 20 20 20 20 | #'M',d|1. |
|00002120| 62 6e 65 2e 73 20 20 20 | 20 6e 6f 5f 30 72 6f 77 |bne.s | no_0row|
|00002130| 20 20 20 20 20 20 20 20 | 20 20 20 2a 20 49 66 20 | | * If |
|00002140| 6e 6f 74 20 45 53 43 20 | 4d 0a 20 20 20 20 20 20 |not ESC |M. |
|00002150| 6d 6f 76 65 2e 77 20 20 | 20 23 63 72 2c 64 31 0a |move.w | #cr,d1.|
|00002160| 20 20 20 20 20 20 62 73 | 72 20 20 20 20 20 20 63 | bs|r c|
|00002170| 68 61 72 6f 75 74 20 20 | 20 20 20 20 20 20 20 20 |harout | |
|00002180| 20 2a 20 65 6c 73 65 20 | 70 72 69 6e 74 20 43 52 | * else |print CR|
|00002190| 0a 20 20 20 20 20 20 6d | 6f 76 65 2e 77 20 20 20 |. m|ove.w |
|000021a0| 23 6c 66 2c 64 31 0a 20 | 20 20 20 20 20 62 73 72 |#lf,d1. | bsr|
|000021b0| 20 20 20 20 20 20 63 68 | 61 72 6f 75 74 20 20 20 | ch|arout |
|000021c0| 20 20 20 20 20 20 20 20 | 2a 20 61 6e 64 20 4c 46 | |* and LF|
|000021d0| 0a 20 20 20 20 20 20 62 | 73 72 2e 73 20 20 20 20 |. b|sr.s |
|000021e0| 73 63 72 5f 75 70 20 20 | 20 20 20 20 20 20 20 20 |scr_up | |
|000021f0| 20 20 2a 20 61 6e 64 20 | 73 63 72 6f 6c 6c 20 75 | * and |scroll u|
|00002200| 70 0a 20 20 20 20 20 20 | 62 72 61 2e 73 20 20 20 |p. |bra.s |
|00002210| 20 6e 65 77 64 6f 6e 65 | 0a 6e 6f 5f 30 72 6f 77 | newdone|.no_0row|
|00002220| 0a 20 20 20 20 20 20 6d | 6f 76 65 2e 77 20 20 20 |. m|ove.w |
|00002230| 23 65 73 63 2c 64 31 20 | 20 20 20 20 20 20 20 20 |#esc,d1 | |
|00002240| 20 20 2a 20 49 6e 20 61 | 6c 6c 20 6f 74 68 65 72 | * In a|ll other|
|00002250| 20 27 65 73 63 61 70 65 | 20 63 61 73 65 73 27 0a | 'escape| cases'.|
|00002260| 20 20 20 20 20 20 62 73 | 72 20 20 20 20 20 20 63 | bs|r c|
|00002270| 68 61 72 6f 75 74 20 20 | 20 20 20 20 20 20 20 20 |harout | |
|00002280| 20 2a 20 70 72 69 6e 74 | 20 74 68 65 20 45 53 43 | * print| the ESC|
|00002290| 0a 20 20 20 20 20 20 6d | 6f 76 65 2e 77 20 20 20 |. m|ove.w |
|000022a0| 28 73 70 29 2c 64 31 0a | 20 20 20 20 20 20 62 73 |(sp),d1.| bs|
|000022b0| 72 20 20 20 20 20 20 63 | 68 61 72 6f 75 74 20 20 |r c|harout |
|000022c0| 20 20 20 20 20 20 20 20 | 20 2a 20 61 6e 64 20 74 | | * and t|
|000022d0| 68 65 20 63 75 72 72 65 | 6e 74 20 63 68 61 72 61 |he curre|nt chara|
|000022e0| 63 74 65 72 0a 20 20 20 | 20 20 20 62 72 61 2e 73 |cter. | bra.s|
|000022f0| 20 20 20 20 6e 65 77 64 | 6f 6e 65 0a 6e 6f 65 73 | newd|one.noes|
|00002300| 63 0a 20 20 20 20 20 20 | 63 6d 70 2e 77 20 20 20 |c. |cmp.w |
|00002310| 20 23 65 73 63 2c 64 31 | 20 20 20 20 20 20 20 20 | #esc,d1| |
|00002320| 20 20 20 2a 20 49 73 20 | 63 75 72 72 65 6e 74 20 | * Is |current |
|00002330| 63 68 61 72 20 61 6e 20 | 45 53 43 3f 0a 20 20 20 |char an |ESC?. |
|00002340| 20 20 20 62 6e 65 2e 73 | 20 20 20 20 6e 6f 6e 65 | bne.s| none|
|00002350| 73 63 0a 20 20 20 20 20 | 20 6c 65 61 2e 6c 20 20 |sc. | lea.l |
|00002360| 20 20 68 61 64 65 73 63 | 28 70 63 29 2c 61 30 0a | hadesc|(pc),a0.|
|00002370| 20 20 20 20 20 20 73 74 | 20 20 20 20 20 20 20 28 | st| (|
|00002380| 61 30 29 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |a0) | |
|00002390| 20 2a 20 4d 61 72 6b 20 | 74 68 65 20 66 6c 61 67 | * Mark |the flag|
|000023a0| 20 66 6f 72 20 27 68 61 | 64 20 65 73 63 61 70 65 | for 'ha|d escape|
|000023b0| 27 0a 20 20 20 20 20 20 | 62 72 61 2e 73 20 20 20 |'. |bra.s |
|000023c0| 20 6e 65 77 64 6f 6e 65 | 0a 6e 6f 6e 65 73 63 0a | newdone|.nonesc.|
|000023d0| 20 20 20 20 20 20 6d 6f | 76 65 2e 77 20 20 20 6d | mo|ve.w m|
|000023e0| 61 78 72 6f 77 28 61 31 | 29 2c 64 30 0a 20 20 20 |axrow(a1|),d0. |
|000023f0| 20 20 20 63 6d 70 2e 77 | 20 20 20 20 72 6f 77 28 | cmp.w| row(|
|00002400| 61 31 29 2c 64 30 0a 20 | 20 20 20 20 20 62 6e 65 |a1),d0. | bne|
|00002410| 2e 73 20 20 20 20 6e 65 | 77 72 65 73 74 20 20 20 |.s ne|wrest |
|00002420| 20 20 20 20 20 20 20 20 | 2a 20 49 66 20 6e 6f 74 | |* If not|
|00002430| 20 79 65 74 20 61 74 20 | 62 6f 74 74 6f 6d 20 72 | yet at |bottom r|
|00002440| 6f 77 20 6f 66 20 64 69 | 73 70 6c 61 79 0a 20 20 |ow of di|splay. |
|00002450| 20 20 20 20 63 6d 70 2e | 77 20 20 20 20 23 6c 66 | cmp.|w #lf|
|00002460| 2c 64 31 0a 20 20 20 20 | 20 20 62 65 71 2e 73 20 |,d1. | beq.s |
|00002470| 20 20 20 6e 65 77 75 70 | 20 20 20 20 20 20 20 20 | newup| |
|00002480| 20 20 20 20 20 2a 20 42 | 75 74 20 65 6c 73 65 3a | * B|ut else:|
|00002490| 20 49 66 20 79 6f 75 20 | 68 61 64 20 61 20 4c 46 | If you |had a LF|
|000024a0| 0a 20 20 20 20 20 20 63 | 6d 70 2e 77 20 20 20 20 |. c|mp.w |
|000024b0| 23 76 74 2c 64 31 0a 20 | 20 20 20 20 20 62 65 71 |#vt,d1. | beq|
|000024c0| 2e 73 20 20 20 20 6e 65 | 77 75 70 20 20 20 20 20 |.s ne|wup |
|000024d0| 20 20 20 20 20 20 20 20 | 2a 20 6f 72 20 61 20 56 | |* or a V|
|000024e0| 54 0a 20 20 20 20 20 20 | 63 6d 70 2e 77 20 20 20 |T. |cmp.w |
|000024f0| 20 23 66 66 2c 64 31 0a | 20 20 20 20 20 20 62 65 | #ff,d1.| be|
|00002500| 71 2e 73 20 20 20 20 6e | 65 77 75 70 20 20 20 20 |q.s n|ewup |
|00002510| 20 20 20 20 20 20 20 20 | 20 2a 20 6f 72 20 61 20 | | * or a |
|00002520| 46 46 0a 20 20 20 20 20 | 20 63 6d 70 2e 77 20 20 |FF. | cmp.w |
|00002530| 20 20 23 27 20 27 2c 64 | 31 0a 20 20 20 20 20 20 | #' ',d|1. |
|00002540| 62 6c 74 2e 73 20 20 20 | 20 6e 65 77 72 65 73 74 |blt.s | newrest|
|00002550| 20 20 20 20 20 20 20 20 | 20 20 20 2a 20 6f 72 3a | | * or:|
|00002560| 20 61 20 70 72 69 6e 74 | 69 6e 67 20 63 68 61 72 | a print|ing char|
|00002570| 61 63 74 65 72 0a 20 20 | 20 20 20 20 6d 6f 76 65 |acter. | move|
|00002580| 2e 77 20 20 20 6d 61 78 | 63 6f 6c 28 61 31 29 2c |.w max|col(a1),|
|00002590| 64 30 0a 20 20 20 20 20 | 20 63 6d 70 2e 77 20 20 |d0. | cmp.w |
|000025a0| 20 20 63 6f 6c 28 61 31 | 29 2c 64 30 0a 20 20 20 | col(a1|),d0. |
|000025b0| 20 20 20 62 6e 65 2e 73 | 20 20 20 20 6e 65 77 72 | bne.s| newr|
|000025c0| 65 73 74 20 20 20 20 20 | 20 20 20 20 20 20 2a 20 |est | * |
|000025d0| 61 6e 64 20 63 75 72 73 | 6f 72 20 61 74 20 6c 61 |and curs|or at la|
|000025e0| 73 74 20 63 6f 6c 75 6d | 6e 0a 20 20 20 20 20 20 |st colum|n. |
|000025f0| 62 74 73 74 20 20 20 20 | 20 23 33 2c 66 6c 61 67 |btst | #3,flag|
|00002600| 28 61 31 29 0a 20 20 20 | 20 20 20 62 65 71 2e 73 |(a1). | beq.s|
|00002610| 20 20 20 20 6e 65 77 72 | 65 73 74 20 20 20 20 20 | newr|est |
|00002620| 20 20 20 20 20 20 2a 20 | 61 6e 64 20 61 75 74 6f | * |and auto|
|00002630| 20 77 72 61 70 20 6d 6f | 64 65 3b 20 74 68 65 6e | wrap mo|de; then|
|00002640| 3a 0a 6e 65 77 75 70 0a | 20 20 20 20 20 20 62 73 |:.newup.| bs|
|00002650| 72 2e 73 20 20 20 20 73 | 63 72 5f 75 70 20 20 20 |r.s s|cr_up |
|00002660| 20 20 20 20 20 20 20 20 | 20 2a 20 73 63 72 6f 6c | | * scrol|
|00002670| 6c 20 75 70 0a 6e 65 77 | 72 65 73 74 0a 20 20 20 |l up.new|rest. |
|00002680| 20 20 20 6d 6f 76 65 2e | 77 20 20 20 28 73 70 29 | move.|w (sp)|
|00002690| 2c 64 31 20 20 20 20 20 | 20 20 20 20 20 20 2a 20 |,d1 | * |
|000026a0| 50 72 69 6e 74 20 74 68 | 65 20 63 68 61 72 61 63 |Print th|e charac|
|000026b0| 74 65 72 20 73 61 76 65 | 64 0a 20 20 20 20 20 20 |ter save|d. |
|000026c0| 62 73 72 20 20 20 20 20 | 20 63 68 61 72 6f 75 74 |bsr | charout|
|000026d0| 0a 6e 65 77 64 6f 6e 65 | 0a 20 20 20 20 20 20 61 |.newdone|. a|
|000026e0| 64 64 71 2e 6c 20 20 20 | 23 32 2c 73 70 20 20 20 |ddq.l |#2,sp |
|000026f0| 20 20 20 20 20 20 20 20 | 20 20 2a 20 43 6c 65 61 | | * Clea|
|00002700| 6e 20 75 70 20 73 74 61 | 63 6b 0a 20 20 20 20 20 |n up sta|ck. |
|00002710| 20 62 73 72 20 20 20 20 | 20 20 73 65 74 76 65 63 | bsr | setvec|
|00002720| 74 20 20 20 20 20 20 20 | 20 20 20 20 2a 20 52 65 |t | * Re|
|00002730| 73 65 74 20 63 6f 6e 5f | 73 74 61 74 65 20 74 6f |set con_|state to|
|00002740| 20 70 6f 69 6e 74 20 74 | 6f 20 6d 65 20 61 67 61 | point t|o me aga|
|00002750| 69 6e 0a 20 20 20 20 20 | 20 72 74 73 0a 0a 2a 20 |in. | rts..* |
|00002760| 53 63 72 6f 6c 6c 20 75 | 70 20 72 6f 75 74 69 6e |Scroll u|p routin|
|00002770| 65 0a 2a 20 44 65 70 65 | 6e 64 69 6e 67 20 6f 6e |e.* Depe|nding on|
|00002780| 20 63 75 72 72 65 6e 74 | 20 62 61 73 65 20 70 6f | current| base po|
|00002790| 73 69 74 69 6f 6e 20 74 | 68 65 20 6e 65 77 20 73 |sition t|he new s|
|000027a0| 63 72 65 65 6e 20 6c 6f | 63 61 74 69 6f 6e 20 69 |creen lo|cation i|
|000027b0| 73 20 6f 6e 6c 79 20 72 | 65 73 65 74 0a 2a 20 6f |s only r|eset.* o|
|000027c0| 72 20 74 68 65 72 65 20 | 69 73 20 61 6e 20 61 72 |r there |is an ar|
|000027d0| 65 61 20 63 6f 70 79 20 | 61 73 20 77 65 6c 6c 2e |ea copy |as well.|
|000027e0| 0a 73 63 72 5f 75 70 0a | 20 20 20 20 20 20 6d 6f |.scr_up.| mo|
|000027f0| 76 65 61 2e 6c 20 20 73 | 63 72 69 6e 66 6f 28 70 |vea.l s|crinfo(p|
|00002800| 63 29 2c 61 31 0a 20 20 | 20 20 20 20 6d 6f 76 65 |c),a1. | move|
|00002810| 2e 77 20 20 20 62 70 72 | 6f 77 28 61 31 29 2c 64 |.w bpr|ow(a1),d|
|00002820| 30 0a 20 20 20 20 20 20 | 6d 6f 76 65 61 2e 6c 20 |0. |movea.l |
|00002830| 20 76 5f 62 61 73 5f 61 | 64 2c 61 30 0a 20 20 20 | v_bas_a|d,a0. |
|00002840| 20 20 20 63 6d 70 61 2e | 6c 20 20 20 74 6f 70 62 | cmpa.|l topb|
|00002850| 61 73 65 28 70 63 29 2c | 61 30 0a 20 20 20 20 20 |ase(pc),|a0. |
|00002860| 20 62 67 65 2e 73 20 20 | 20 20 75 70 5f 69 73 74 | bge.s | up_ist|
|00002870| 6f 70 0a 20 20 20 20 20 | 20 61 64 64 61 2e 77 20 |op. | adda.w |
|00002880| 20 20 64 30 2c 61 30 20 | 20 20 20 20 20 20 20 20 | d0,a0 | |
|00002890| 20 20 20 20 2a 20 49 66 | 20 6e 6f 74 20 61 74 20 | * If| not at |
|000028a0| 74 6f 70 20 61 64 64 72 | 65 73 73 2c 20 73 69 6d |top addr|ess, sim|
|000028b0| 70 6c 79 20 61 64 64 20 | 61 20 72 6f 77 27 73 0a |ply add |a row's.|
|000028c0| 20 20 20 20 20 20 6d 6f | 76 65 2e 6c 20 20 20 61 | mo|ve.l a|
|000028d0| 30 2c 2d 28 73 70 29 20 | 20 20 20 20 20 20 20 20 |0,-(sp) | |
|000028e0| 20 2a 20 73 69 7a 65 20 | 74 6f 20 74 68 65 20 63 | * size |to the c|
|000028f0| 75 72 72 65 6e 74 20 61 | 64 64 72 65 73 73 0a 20 |urrent a|ddress. |
|00002900| 20 20 20 20 20 62 73 72 | 20 20 20 20 20 20 6e 65 | bsr| ne|
|00002910| 77 73 63 72 65 65 6e 20 | 20 20 20 20 20 20 20 20 |wscreen | |
|00002920| 2a 20 61 6e 64 20 6d 61 | 6b 65 20 74 68 61 74 20 |* and ma|ke that |
|00002930| 74 68 65 20 63 75 72 72 | 65 6e 74 0a 20 20 20 20 |the curr|ent. |
|00002940| 20 20 61 64 64 71 2e 6c | 20 20 20 23 34 2c 73 70 | addq.l| #4,sp|
|00002950| 0a 20 20 20 20 20 20 62 | 72 61 2e 73 20 20 20 20 |. b|ra.s |
|00002960| 75 70 5f 65 6e 64 0a 75 | 70 5f 69 73 74 6f 70 0a |up_end.u|p_istop.|
|00002970| 20 20 20 20 20 20 6d 6f | 76 65 2e 77 20 20 20 6d | mo|ve.w m|
|00002980| 61 78 72 6f 77 28 61 31 | 29 2c 64 31 0a 20 20 20 |axrow(a1|),d1. |
|00002990| 20 20 20 6d 75 6c 75 2e | 77 20 20 20 64 30 2c 64 | mulu.|w d0,d|
|000029a0| 31 0a 20 20 20 20 20 20 | 6d 6f 76 65 2e 6c 20 20 |1. |move.l |
|000029b0| 20 62 6f 74 62 61 73 65 | 28 70 63 29 2c 61 32 0a | botbase|(pc),a2.|
|000029c0| 20 20 20 20 20 20 6d 6f | 76 65 2e 6c 20 20 20 61 | mo|ve.l a|
|000029d0| 32 2c 2d 28 73 70 29 20 | 20 20 20 20 20 20 20 20 |2,-(sp) | |
|000029e0| 20 2a 20 53 61 76 65 20 | 63 6f 70 79 20 6f 66 20 | * Save |copy of |
|000029f0| 62 6f 74 62 61 73 65 20 | 6f 6e 20 73 74 61 63 6b |botbase |on stack|
|00002a00| 0a 20 20 20 20 20 20 61 | 64 64 61 2e 77 20 20 20 |. a|dda.w |
|00002a10| 64 30 2c 61 30 0a 20 20 | 20 20 20 20 6d 6f 76 65 |d0,a0. | move|
|00002a20| 2e 6c 20 20 20 61 32 2c | 61 31 0a 20 20 20 20 20 |.l a2,|a1. |
|00002a30| 20 73 75 62 61 2e 6c 20 | 20 20 61 30 2c 61 31 20 | suba.l | a0,a1 |
|00002a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 2a 20 44 69 | | * Di|
|00002a50| 66 66 65 72 65 6e 63 65 | 20 69 6e 74 6f 20 61 31 |fference| into a1|
|00002a60| 0a 20 20 20 20 20 20 6d | 6f 76 65 2e 6c 20 20 20 |. m|ove.l |
|00002a70| 61 31 2c 2d 28 73 70 29 | 20 20 20 20 20 20 20 20 |a1,-(sp)| |
|00002a80| 20 20 2a 20 53 61 76 65 | 20 69 74 2e 0a 20 20 20 | * Save| it.. |
|00002a90| 20 20 20 6d 6f 76 65 2e | 77 20 20 20 64 31 2c 2d | move.|w d1,-|
|00002aa0| 28 73 70 29 20 20 20 20 | 20 20 20 20 20 20 2a 20 |(sp) | * |
|00002ab0| 23 20 62 79 74 65 73 20 | 74 6f 20 62 65 20 63 6f |# bytes |to be co|
|00002ac0| 70 69 65 64 3a 20 61 6c | 6c 20 62 75 74 20 6f 6e |pied: al|l but on|
|00002ad0| 65 20 72 6f 77 0a 20 20 | 20 20 20 20 6d 6f 76 65 |e row. | move|
|00002ae0| 2e 6c 20 20 20 61 32 2c | 2d 28 73 70 29 20 20 20 |.l a2,|-(sp) |
|00002af0| 20 20 20 20 20 20 20 2a | 20 64 65 73 74 69 6e 61 | *| destina|
|00002b00| 74 69 6f 6e 3a 20 62 6f | 74 62 61 73 65 0a 20 20 |tion: bo|tbase. |
|00002b10| 20 20 20 20 6d 6f 76 65 | 2e 6c 20 20 20 61 30 2c | move|.l a0,|
|00002b20| 2d 28 73 70 29 20 20 20 | 20 20 20 20 20 20 20 2a |-(sp) | *|
|00002b30| 20 73 6f 75 72 63 65 3a | 20 63 75 72 72 65 6e 74 | source:| current|
|00002b40| 20 61 64 64 72 65 73 73 | 20 2b 20 6f 6e 65 20 72 | address| + one r|
|00002b50| 6f 77 20 73 69 7a 65 0a | 20 20 20 20 20 20 62 73 |ow size.| bs|
|00002b60| 72 20 20 20 20 20 20 6d | 6f 65 76 6d 65 6d 20 20 |r m|oevmem |
|00002b70| 20 20 20 20 20 20 20 20 | 20 2a 20 63 6f 70 79 20 | | * copy |
|00002b80| 69 74 0a 20 20 20 20 20 | 20 6c 65 61 2e 6c 20 20 |it. | lea.l |
|00002b90| 20 20 31 30 28 73 70 29 | 2c 73 70 0a 20 20 20 20 | 10(sp)|,sp. |
|00002ba0| 20 20 6d 6f 76 65 2e 6c | 20 20 20 28 73 70 29 2b | move.l| (sp)+|
|00002bb0| 2c 64 30 20 20 20 20 20 | 20 20 20 20 20 2a 20 44 |,d0 | * D|
|00002bc0| 69 66 66 65 72 65 6e 63 | 65 20 69 6e 74 6f 20 64 |ifferenc|e into d|
|00002bd0| 30 0a 20 20 20 20 20 20 | 6d 6f 76 65 61 2e 6c 20 |0. |movea.l |
|00002be0| 20 73 63 72 69 6e 66 6f | 28 70 63 29 2c 61 31 0a | scrinfo|(pc),a1.|
|00002bf0| 20 20 20 20 20 20 61 64 | 64 2e 6c 20 20 20 20 64 | ad|d.l d|
|00002c00| 30 2c 73 63 72 61 64 28 | 61 31 29 20 20 20 20 20 |0,scrad(|a1) |
|00002c10| 20 2a 20 4d 61 6b 65 20 | 75 70 20 66 6f 72 20 74 | * Make |up for t|
|00002c20| 68 65 20 6d 6f 65 76 6d | 65 6d 20 66 6f 72 20 63 |he moevm|em for c|
|00002c30| 75 72 73 6f 72 20 73 63 | 72 61 64 0a 20 20 20 20 |ursor sc|rad. |
|00002c40| 20 20 62 73 72 20 20 20 | 20 20 20 6e 65 77 73 63 | bsr | newsc|
|00002c50| 72 65 65 6e 20 20 20 20 | 20 20 20 20 20 2a 20 4d |reen | * M|
|00002c60| 61 6b 65 20 62 6f 74 62 | 61 73 65 20 73 74 61 72 |ake botb|ase star|
|00002c70| 74 20 6f 66 20 6e 65 77 | 20 73 63 72 65 65 6e 0a |t of new| screen.|
|00002c80| 20 20 20 20 20 20 61 64 | 64 71 2e 6c 20 20 20 23 | ad|dq.l #|
|00002c90| 34 2c 73 70 0a 75 70 5f | 65 6e 64 0a 20 20 20 20 |4,sp.up_|end. |
|00002ca0| 20 20 6d 6f 76 65 61 2e | 6c 20 20 73 63 72 69 6e | movea.|l scrin|
|00002cb0| 66 6f 28 70 63 29 2c 61 | 31 0a 20 20 20 20 20 20 |fo(pc),a|1. |
|00002cc0| 73 75 62 2e 77 20 20 20 | 20 23 31 2c 72 6f 77 28 |sub.w | #1,row(|
|00002cd0| 61 31 29 20 20 20 20 20 | 20 20 20 2a 20 44 65 63 |a1) | * Dec|
|00002ce0| 72 65 6d 65 6e 74 20 72 | 6f 77 20 23 0a 20 20 20 |rement r|ow #. |
|00002cf0| 20 20 20 6d 6f 76 65 2e | 77 20 20 20 6d 61 78 72 | move.|w maxr|
|00002d00| 6f 77 28 61 31 29 2c 64 | 30 0a 20 20 20 20 20 20 |ow(a1),d|0. |
|00002d10| 6d 75 6c 75 2e 77 20 20 | 20 62 70 72 6f 77 28 61 |mulu.w | bprow(a|
|00002d20| 31 29 2c 64 30 0a 20 20 | 20 20 20 20 6d 6f 76 65 |1),d0. | move|
|00002d30| 2e 6c 20 20 20 76 5f 62 | 61 73 5f 61 64 2c 61 30 |.l v_b|as_ad,a0|
|00002d40| 0a 20 20 20 20 20 20 61 | 64 64 61 2e 77 20 20 20 |. a|dda.w |
|00002d50| 64 30 2c 61 30 0a 20 20 | 20 20 20 20 6d 6f 76 65 |d0,a0. | move|
|00002d60| 2e 6c 20 20 20 61 30 2c | 2d 28 73 70 29 0a 20 20 |.l a0,|-(sp). |
|00002d70| 20 20 20 20 62 73 72 2e | 73 20 20 20 20 63 6c 65 | bsr.|s cle|
|00002d80| 61 72 6c 69 6e 65 20 20 | 20 20 20 20 20 20 20 2a |arline | *|
|00002d90| 20 43 6c 65 61 72 20 6c | 61 73 74 20 72 6f 77 20 | Clear l|ast row |
|00002da0| 6f 66 20 64 69 73 70 6c | 61 79 0a 20 20 20 20 20 |of displ|ay. |
|00002db0| 20 61 64 64 71 2e 6c 20 | 20 20 23 34 2c 73 70 0a | addq.l | #4,sp.|
|00002dc0| 20 20 20 20 20 20 72 74 | 73 0a 0a 73 63 72 5f 64 | rt|s..scr_d|
|00002dd0| 6f 77 6e 0a 20 20 20 20 | 20 20 6d 6f 76 65 61 2e |own. | movea.|
|00002de0| 6c 20 20 73 63 72 69 6e | 66 6f 28 70 63 29 2c 61 |l scrin|fo(pc),a|
|00002df0| 31 0a 20 20 20 20 20 20 | 6d 6f 76 65 2e 77 20 20 |1. |move.w |
|00002e00| 20 62 70 72 6f 77 28 61 | 31 29 2c 64 30 0a 20 20 | bprow(a|1),d0. |
|00002e10| 20 20 20 20 6d 6f 76 65 | 61 2e 6c 20 20 76 5f 62 | move|a.l v_b|
|00002e20| 61 73 5f 61 64 2c 61 30 | 0a 20 20 20 20 20 20 63 |as_ad,a0|. c|
|00002e30| 6d 70 61 2e 6c 20 20 20 | 62 6f 74 62 61 73 65 28 |mpa.l |botbase(|
|00002e40| 70 63 29 2c 61 30 0a 20 | 20 20 20 20 20 62 6c 65 |pc),a0. | ble|
|00002e50| 2e 73 20 20 20 20 64 6f | 5f 69 73 74 6f 70 20 20 |.s do|_istop |
|00002e60| 20 20 20 20 20 20 20 20 | 2a 20 49 66 20 63 75 72 | |* If cur|
|00002e70| 72 65 6e 74 20 73 63 72 | 65 65 6e 20 61 6c 72 65 |rent scr|een alre|
|00002e80| 61 64 79 20 61 74 20 74 | 6f 70 0a 20 20 20 20 20 |ady at t|op. |
|00002e90| 20 73 75 62 61 2e 77 20 | 20 20 64 30 2c 61 30 20 | suba.w | d0,a0 |
|00002ea0| 20 20 20 20 20 20 20 20 | 20 20 20 20 2a 20 45 6c | | * El|
|00002eb0| 73 65 20 73 69 6d 70 6c | 79 20 73 75 62 74 72 61 |se simpl|y subtra|
|00002ec0| 63 74 20 61 20 72 6f 77 | 27 73 0a 20 20 20 20 20 |ct a row|'s. |
|00002ed0| 20 6d 6f 76 65 2e 6c 20 | 20 20 61 30 2c 2d 28 73 | move.l | a0,-(s|
|00002ee0| 70 29 20 20 20 20 20 20 | 20 20 20 20 2a 20 73 69 |p) | * si|
|00002ef0| 7a 65 20 66 72 6f 6d 20 | 74 68 65 20 63 75 72 72 |ze from |the curr|
|00002f00| 65 6e 74 20 61 64 64 72 | 65 73 73 0a 20 20 20 20 |ent addr|ess. |
|00002f10| 20 20 62 73 72 2e 73 20 | 20 20 20 6e 65 77 73 63 | bsr.s | newsc|
|00002f20| 72 65 65 6e 20 20 20 20 | 20 20 20 20 20 2a 20 61 |reen | * a|
|00002f30| 6e 64 20 6d 61 6b 65 20 | 74 68 61 74 20 74 68 65 |nd make |that the|
|00002f40| 20 63 75 72 72 65 6e 74 | 0a 20 20 20 20 20 20 61 | current|. a|
|00002f50| 64 64 71 2e 6c 20 20 20 | 23 34 2c 73 70 0a 20 20 |ddq.l |#4,sp. |
|00002f60| 20 20 20 20 62 72 61 2e | 73 20 20 20 20 64 6f 5f | bra.|s do_|
|00002f70| 65 6e 64 0a 64 6f 5f 69 | 73 74 6f 70 0a 20 20 20 |end.do_i|stop. |
|00002f80| 20 20 20 6d 6f 76 65 2e | 77 20 20 20 6d 61 78 72 | move.|w maxr|
|00002f90| 6f 77 28 61 31 29 2c 64 | 31 0a 20 20 20 20 20 20 |ow(a1),d|1. |
|00002fa0| 6d 75 6c 75 2e 77 20 20 | 20 64 30 2c 64 31 0a 20 |mulu.w | d0,d1. |
|00002fb0| 20 20 20 20 20 6d 6f 76 | 65 2e 6c 20 20 20 74 6f | mov|e.l to|
|00002fc0| 70 62 61 73 65 28 70 63 | 29 2c 61 32 0a 20 20 20 |pbase(pc|),a2. |
|00002fd0| 20 20 20 6d 6f 76 65 2e | 6c 20 20 20 61 32 2c 2d | move.|l a2,-|
|00002fe0| 28 73 70 29 20 20 20 20 | 20 20 20 20 20 20 2a 20 |(sp) | * |
|00002ff0| 53 61 76 65 20 63 6f 70 | 79 20 6f 66 20 74 6f 70 |Save cop|y of top|
|00003000| 62 61 73 65 20 6f 6e 20 | 73 74 61 63 6b 0a 20 20 |base on |stack. |
|00003010| 20 20 20 20 61 64 64 61 | 2e 77 20 20 20 64 30 2c | adda|.w d0,|
|00003020| 61 32 0a 20 20 20 20 20 | 20 6d 6f 76 65 2e 6c 20 |a2. | move.l |
|00003030| 20 20 61 32 2c 61 31 0a | 20 20 20 20 20 20 73 75 | a2,a1.| su|
|00003040| 62 61 2e 6c 20 20 20 61 | 30 2c 61 31 20 20 20 20 |ba.l a|0,a1 |
|00003050| 20 20 20 20 20 20 20 20 | 20 2a 20 44 69 66 66 65 | | * Diffe|
|00003060| 72 65 6e 63 65 20 69 6e | 74 6f 20 61 31 0a 20 20 |rence in|to a1. |
|00003070| 20 20 20 20 6d 6f 76 65 | 2e 6c 20 20 20 61 31 2c | move|.l a1,|
|00003080| 2d 28 73 70 29 20 20 20 | 20 20 20 20 20 20 20 2a |-(sp) | *|
|00003090| 20 53 61 76 65 20 69 74 | 2e 0a 20 20 20 20 20 20 | Save it|.. |
|000030a0| 6d 6f 76 65 2e 77 20 20 | 20 64 31 2c 2d 28 73 70 |move.w | d1,-(sp|
|000030b0| 29 20 20 20 20 20 20 20 | 20 20 20 2a 20 23 20 62 |) | * # b|
|000030c0| 79 74 65 73 20 74 6f 20 | 62 65 20 63 6f 70 69 65 |ytes to |be copie|
|000030d0| 64 3a 20 61 6c 6c 20 62 | 75 74 20 6f 6e 65 20 72 |d: all b|ut one r|
|000030e0| 6f 77 0a 20 20 20 20 20 | 20 6d 6f 76 65 2e 6c 20 |ow. | move.l |
|000030f0| 20 20 61 32 2c 2d 28 73 | 70 29 20 20 20 20 20 20 | a2,-(s|p) |
|00003100| 20 20 20 20 2a 20 64 65 | 73 74 69 6e 61 74 69 6f | * de|stinatio|
|00003110| 6e 3a 20 74 6f 70 62 61 | 73 65 20 2b 20 6f 6e 65 |n: topba|se + one|
|00003120| 20 72 6f 77 20 73 69 7a | 65 0a 20 20 20 20 20 20 | row siz|e. |
|00003130| 6d 6f 76 65 2e 6c 20 20 | 20 61 30 2c 2d 28 73 70 |move.l | a0,-(sp|
|00003140| 29 20 20 20 20 20 20 20 | 20 20 20 2a 20 73 6f 75 |) | * sou|
|00003150| 72 63 65 3a 20 63 75 72 | 72 65 6e 74 20 61 64 64 |rce: cur|rent add|
|00003160| 72 65 73 73 0a 20 20 20 | 20 20 20 62 73 72 2e 73 |ress. | bsr.s|
|00003170| 20 20 20 20 6d 6f 65 76 | 6d 65 6d 20 20 20 20 20 | moev|mem |
|00003180| 20 20 20 20 20 20 2a 20 | 63 6f 70 79 20 69 74 0a | * |copy it.|
|00003190| 20 20 20 20 20 20 6c 65 | 61 2e 6c 20 20 20 20 31 | le|a.l 1|
|000031a0| 30 28 73 70 29 2c 73 70 | 0a 20 20 20 20 20 20 6d |0(sp),sp|. m|
|000031b0| 6f 76 65 2e 6c 20 20 20 | 28 73 70 29 2b 2c 64 30 |ove.l |(sp)+,d0|
|000031c0| 20 20 20 20 20 20 20 20 | 20 20 2a 20 44 69 66 66 | | * Diff|
|000031d0| 65 72 65 6e 63 65 20 69 | 6e 74 6f 20 64 30 0a 20 |erence i|nto d0. |
|000031e0| 20 20 20 20 20 6d 6f 76 | 65 61 2e 6c 20 20 73 63 | mov|ea.l sc|
|000031f0| 72 69 6e 66 6f 28 70 63 | 29 2c 61 31 0a 20 20 20 |rinfo(pc|),a1. |
|00003200| 20 20 20 61 64 64 2e 6c | 20 20 20 20 64 30 2c 73 | add.l| d0,s|
|00003210| 63 72 61 64 28 61 31 29 | 20 20 20 20 20 20 2a 20 |crad(a1)| * |
|00003220| 4d 61 6b 65 20 75 70 20 | 66 6f 72 20 74 68 65 20 |Make up |for the |
|00003230| 6d 6f 65 76 6d 65 6d 20 | 66 6f 72 20 63 75 72 73 |moevmem |for curs|
|00003240| 6f 72 20 73 63 72 61 64 | 0a 20 20 20 20 20 20 62 |or scrad|. b|
|00003250| 73 72 2e 73 20 20 20 20 | 6e 65 77 73 63 72 65 65 |sr.s |newscree|
|00003260| 6e 20 20 20 20 20 20 20 | 20 20 2a 20 4d 61 6b 65 |n | * Make|
|00003270| 20 62 6f 74 62 61 73 65 | 20 73 74 61 72 74 20 6f | botbase| start o|
|00003280| 66 20 6e 65 77 20 73 63 | 72 65 65 6e 0a 20 20 20 |f new sc|reen. |
|00003290| 20 20 20 61 64 64 71 2e | 6c 20 20 20 23 34 2c 73 | addq.|l #4,s|
|000032a0| 70 0a 64 6f 5f 65 6e 64 | 0a 20 20 20 20 20 20 6d |p.do_end|. m|
|000032b0| 6f 76 65 61 2e 6c 20 20 | 73 63 72 69 6e 66 6f 28 |ovea.l |scrinfo(|
|000032c0| 70 63 29 2c 61 31 0a 20 | 20 20 20 20 20 61 64 64 |pc),a1. | add|
|000032d0| 2e 77 20 20 20 20 23 31 | 2c 72 6f 77 28 61 31 29 |.w #1|,row(a1)|
|000032e0| 20 20 20 20 20 20 20 20 | 2a 20 49 6e 63 72 65 6d | |* Increm|
|000032f0| 65 6e 74 20 72 6f 77 20 | 23 0a 20 20 20 20 20 20 |ent row |#. |
|00003300| 6d 6f 76 65 2e 6c 20 20 | 20 76 5f 62 61 73 5f 61 |move.l | v_bas_a|
|00003310| 64 2c 2d 28 73 70 29 0a | 20 20 20 20 20 20 62 73 |d,-(sp).| bs|
|00003320| 72 2e 73 20 20 20 20 63 | 6c 65 61 72 6c 69 6e 65 |r.s c|learline|
|00003330| 20 20 20 20 20 20 20 20 | 20 2a 20 43 6c 65 61 72 | | * Clear|
|00003340| 20 74 6f 70 20 72 6f 77 | 20 6f 66 20 64 69 73 70 | top row| of disp|
|00003350| 6c 61 79 0a 20 20 20 20 | 20 20 61 64 64 71 2e 6c |lay. | addq.l|
|00003360| 20 20 20 23 34 2c 73 70 | 0a 20 20 20 20 20 20 72 | #4,sp|. r|
|00003370| 74 73 0a 0a 63 6c 65 61 | 72 6c 69 6e 65 0a 20 20 |ts..clea|rline. |
|00003380| 20 20 20 20 6d 6f 76 65 | 61 2e 6c 20 20 73 63 72 | move|a.l scr|
|00003390| 69 6e 66 6f 28 70 63 29 | 2c 61 30 0a 20 20 20 20 |info(pc)|,a0. |
|000033a0| 20 20 6d 6f 76 65 71 2e | 6c 20 20 23 30 2c 64 30 | moveq.|l #0,d0|
|000033b0| 0a 20 20 20 20 20 20 6d | 6f 76 65 2e 77 20 20 20 |. m|ove.w |
|000033c0| 62 70 72 6f 77 28 61 30 | 29 2c 64 30 20 20 20 20 |bprow(a0|),d0 |
|000033d0| 20 20 2a 20 23 20 3a 20 | 62 79 74 65 73 20 70 65 | * # : |bytes pe|
|000033e0| 72 20 72 6f 77 0a 20 20 | 20 20 20 20 61 73 72 2e |r row. | asr.|
|000033f0| 77 20 20 20 20 23 34 2c | 64 30 20 20 20 20 20 20 |w #4,|d0 |
|00003400| 20 20 20 20 20 20 20 2a | 20 2f 20 31 36 20 64 6f | *| / 16 do|
|00003410| 69 6e 67 20 34 20 6c 6f | 6e 67 73 20 61 74 20 61 |ing 4 lo|ngs at a|
|00003420| 20 74 69 6d 65 0a 20 20 | 20 20 20 20 73 75 62 71 | time. | subq|
|00003430| 2e 6c 20 20 20 23 31 2c | 64 30 0a 20 20 20 20 20 |.l #1,|d0. |
|00003440| 20 6d 6f 76 65 2e 6c 20 | 20 20 34 28 73 70 29 2c | move.l | 4(sp),|
|00003450| 61 30 20 20 20 20 20 20 | 20 20 20 20 2a 20 4d 65 |a0 | * Me|
|00003460| 6d 6f 72 79 20 73 74 61 | 72 74 20 61 64 64 72 65 |mory sta|rt addre|
|00003470| 73 73 20 6f 66 20 72 6f | 77 0a 20 20 20 20 20 20 |ss of ro|w. |
|00003480| 6d 6f 76 65 71 2e 6c 20 | 20 23 30 2c 64 31 20 20 |moveq.l | #0,d1 |
|00003490| 20 20 20 20 20 20 20 20 | 20 20 20 2a 20 46 69 6c | | * Fil|
|000034a0| 6c 65 72 0a 63 6c 72 6e | 78 74 0a 20 20 20 20 20 |ler.clrn|xt. |
|000034b0| 20 6d 6f 76 65 2e 6c 20 | 20 20 64 31 2c 28 61 30 | move.l | d1,(a0|
|000034c0| 29 2b 0a 20 20 20 20 20 | 20 6d 6f 76 65 2e 6c 20 |)+. | move.l |
|000034d0| 20 20 64 31 2c 28 61 30 | 29 2b 0a 20 20 20 20 20 | d1,(a0|)+. |
|000034e0| 20 6d 6f 76 65 2e 6c 20 | 20 20 64 31 2c 28 61 30 | move.l | d1,(a0|
|000034f0| 29 2b 0a 20 20 20 20 20 | 20 6d 6f 76 65 2e 6c 20 |)+. | move.l |
|00003500| 20 20 64 31 2c 28 61 30 | 29 2b 0a 20 20 20 20 20 | d1,(a0|)+. |
|00003510| 20 64 62 72 61 20 20 20 | 20 20 64 30 2c 63 6c 72 | dbra | d0,clr|
|00003520| 6e 78 74 0a 20 20 20 20 | 20 20 72 74 73 0a 0a 73 |nxt. | rts..s|
|00003530| 65 74 76 65 63 74 0a 20 | 20 20 20 20 20 6c 65 61 |etvect. | lea|
|00003540| 2e 6c 20 20 20 20 63 76 | 73 61 76 28 70 63 29 2c |.l cv|sav(pc),|
|00003550| 61 30 0a 20 20 20 20 20 | 20 6d 6f 76 65 2e 6c 20 |a0. | move.l |
|00003560| 20 20 63 6f 6e 5f 73 74 | 61 74 65 2c 28 61 30 29 | con_st|ate,(a0)|
|00003570| 20 20 20 20 2a 20 53 61 | 76 65 20 63 75 72 72 65 | * Sa|ve curre|
|00003580| 6e 74 20 63 6f 6e 5f 73 | 74 61 74 65 20 76 61 6c |nt con_s|tate val|
|00003590| 75 65 0a 20 20 20 20 20 | 20 6c 65 61 2e 6c 20 20 |ue. | lea.l |
|000035a0| 20 20 6e 65 77 63 6f 6e | 73 6f 6c 65 28 70 63 29 | newcon|sole(pc)|
|000035b0| 2c 61 30 0a 20 20 20 20 | 20 20 6d 6f 76 65 2e 6c |,a0. | move.l|
|000035c0| 20 20 20 61 30 2c 63 6f | 6e 5f 73 74 61 74 65 20 | a0,co|n_state |
|000035d0| 20 20 20 20 20 2a 20 61 | 6e 64 20 6d 61 6b 65 20 | * a|nd make |
|000035e0| 69 74 20 6e 65 77 63 6f | 6e 73 6f 6c 65 20 66 6f |it newco|nsole fo|
|000035f0| 72 20 6e 6f 77 0a 20 20 | 20 20 20 20 72 74 73 0a |r now. | rts.|
|00003600| 0a 6e 65 77 73 63 72 65 | 65 6e 0a 20 20 20 20 20 |.newscre|en. |
|00003610| 20 6d 6f 76 65 2e 6c 20 | 20 20 34 28 73 70 29 2c | move.l | 4(sp),|
|00003620| 64 30 20 20 20 20 20 20 | 20 20 20 20 2a 20 4e 65 |d0 | * Ne|
|00003630| 77 20 73 74 61 72 74 20 | 61 64 64 72 65 73 73 20 |w start |address |
|00003640| 6f 66 20 64 69 73 70 6c | 61 79 0a 20 20 20 20 20 |of displ|ay. |
|00003650| 20 6d 6f 76 65 2e 6c 20 | 20 20 64 30 2c 76 5f 62 | move.l | d0,v_b|
|00003660| 61 73 5f 61 64 20 20 20 | 20 20 20 20 2a 20 69 6e |as_ad | * in|
|00003670| 74 6f 20 6c 6f 67 69 63 | 61 6c 20 73 63 72 65 65 |to logic|al scree|
|00003680| 6e 20 70 6f 69 6e 74 65 | 72 0a 20 20 20 20 20 20 |n pointe|r. |
|00003690| 73 77 61 70 20 20 20 20 | 20 64 30 0a 20 20 20 20 |swap | d0. |
|000036a0| 20 20 6d 6f 76 65 2e 62 | 20 20 20 64 30 2c 24 66 | move.b| d0,$f|
|000036b0| 66 66 66 38 32 30 31 20 | 20 20 20 20 20 2a 20 61 |fff8201 | * a|
|000036c0| 6e 64 20 61 6c 73 6f 0a | 20 20 20 20 20 20 73 77 |nd also.| sw|
|000036d0| 61 70 20 20 20 20 20 64 | 30 0a 20 20 20 20 20 20 |ap d|0. |
|000036e0| 6c 73 72 2e 77 20 20 20 | 20 23 38 2c 64 30 0a 20 |lsr.w | #8,d0. |
|000036f0| 20 20 20 20 20 6d 6f 76 | 65 2e 62 20 20 20 64 30 | mov|e.b d0|
|00003700| 2c 24 66 66 66 66 38 32 | 30 33 20 20 20 20 20 20 |,$ffff82|03 |
|00003710| 2a 20 69 6e 74 6f 20 70 | 68 79 73 69 63 61 6c 20 |* into p|hysical |
|00003720| 73 63 72 65 65 6e 20 70 | 6f 69 6e 74 65 72 0a 20 |screen p|ointer. |
|00003730| 20 20 20 20 20 72 74 73 | 0a 0a 63 68 61 72 6f 75 | rts|..charou|
|00003740| 74 0a 20 20 20 20 20 20 | 61 6e 64 2e 77 20 20 20 |t. |and.w |
|00003750| 23 24 66 66 2c 64 31 20 | 20 20 20 20 20 20 20 20 |#$ff,d1 | |
|00003760| 20 20 20 2a 20 46 6f 72 | 20 70 72 69 6e 74 69 6e | * For| printin|
|00003770| 67 0a 20 20 20 20 20 20 | 6d 6f 76 65 2e 6c 20 20 |g. |move.l |
|00003780| 63 6f 6e 5f 73 74 61 74 | 65 2c 61 30 20 20 20 20 |con_stat|e,a0 |
|00003790| 20 20 20 2a 20 66 72 6f | 6d 20 77 69 74 68 69 6e | * fro|m within|
|000037a0| 20 6e 65 77 63 6f 6e 73 | 6f 6c 65 0a 20 20 20 20 | newcons|ole. |
|000037b0| 20 20 6a 6d 70 20 20 20 | 20 20 28 61 30 29 0a 0a | jmp | (a0)..|
|000037c0| 6d 6f 65 76 6d 65 6d 0a | 20 20 20 20 20 20 6d 6f |moevmem.| mo|
|000037d0| 76 65 2e 6c 20 20 20 34 | 28 73 70 29 2c 61 30 20 |ve.l 4|(sp),a0 |
|000037e0| 20 20 20 20 20 20 20 20 | 20 2a 20 53 6f 75 72 63 | | * Sourc|
|000037f0| 65 20 61 64 64 72 65 73 | 73 0a 20 20 20 20 20 20 |e addres|s. |
|00003800| 6d 6f 76 65 2e 6c 20 20 | 20 38 28 73 70 29 2c 61 |move.l | 8(sp),a|
|00003810| 31 20 20 20 20 20 20 20 | 20 20 20 2a 20 44 65 73 |1 | * Des|
|00003820| 74 69 6e 61 74 69 6f 6e | 20 61 64 64 72 65 73 73 |tination| address|
|00003830| 0a 20 20 20 20 20 20 6d | 6f 76 65 2e 77 20 20 20 |. m|ove.w |
|00003840| 31 32 28 73 70 29 2c 64 | 30 20 20 20 20 20 20 20 |12(sp),d|0 |
|00003850| 20 20 2a 20 23 0a 20 20 | 20 20 20 20 6c 65 61 2e | * #. | lea.|
|00003860| 6c 20 20 20 20 28 61 30 | 2c 64 30 2e 77 29 2c 61 |l (a0|,d0.w),a|
|00003870| 32 20 20 20 20 20 20 2a | 20 45 6e 64 20 6f 66 20 |2 *| End of |
|00003880| 73 6f 75 72 63 65 20 61 | 72 65 61 0a 20 20 20 20 |source a|rea. |
|00003890| 20 20 63 6d 70 61 2e 6c | 20 20 20 61 31 2c 61 30 | cmpa.l| a1,a0|
|000038a0| 0a 20 20 20 20 20 20 62 | 67 65 2e 73 20 20 20 20 |. b|ge.s |
|000038b0| 66 69 72 73 74 0a 20 20 | 20 20 20 20 63 6d 70 61 |first. | cmpa|
|000038c0| 2e 6c 20 20 20 61 32 2c | 61 31 0a 20 20 20 20 20 |.l a2,|a1. |
|000038d0| 20 62 6c 74 2e 73 20 20 | 20 20 73 65 63 6f 6e 64 | blt.s | second|
|000038e0| 0a 66 69 72 73 74 0a 20 | 20 20 20 20 20 6c 73 72 |.first. | lsr|
|000038f0| 2e 77 20 20 20 20 23 34 | 2c 64 30 20 20 20 20 20 |.w #4|,d0 |
|00003900| 20 20 20 20 20 20 20 20 | 2a 20 2f 31 36 2c 20 63 | |* /16, c|
|00003910| 6f 70 79 69 6e 67 20 34 | 20 6c 6f 6e 67 73 20 61 |opying 4| longs a|
|00003920| 74 20 61 20 74 69 6d 65 | 0a 20 20 20 20 20 20 73 |t a time|. s|
|00003930| 75 62 2e 77 20 20 20 20 | 23 31 2c 64 30 0a 66 5f |ub.w |#1,d0.f_|
|00003940| 6e 65 78 74 0a 20 20 20 | 20 20 20 6d 6f 76 65 2e |next. | move.|
|00003950| 6c 20 20 20 28 61 30 29 | 2b 2c 28 61 31 29 2b 0a |l (a0)|+,(a1)+.|
|00003960| 20 20 20 20 20 20 6d 6f | 76 65 2e 6c 20 20 20 28 | mo|ve.l (|
|00003970| 61 30 29 2b 2c 28 61 31 | 29 2b 0a 20 20 20 20 20 |a0)+,(a1|)+. |
|00003980| 20 6d 6f 76 65 2e 6c 20 | 20 20 28 61 30 29 2b 2c | move.l | (a0)+,|
|00003990| 28 61 31 29 2b 0a 20 20 | 20 20 20 20 6d 6f 76 65 |(a1)+. | move|
|000039a0| 2e 6c 20 20 20 28 61 30 | 29 2b 2c 28 61 31 29 2b |.l (a0|)+,(a1)+|
|000039b0| 0a 20 20 20 20 20 20 64 | 62 72 61 20 20 20 20 20 |. d|bra |
|000039c0| 64 30 2c 66 5f 6e 65 78 | 74 20 20 20 20 20 20 20 |d0,f_nex|t |
|000039d0| 20 20 2a 20 43 6f 70 79 | 20 73 6f 75 72 63 65 20 | * Copy| source |
|000039e0| 74 6f 20 64 65 73 74 69 | 6e 61 74 69 6f 6e 2c 20 |to desti|nation, |
|000039f0| 66 6f 72 77 61 72 64 73 | 0a 20 20 20 20 20 20 72 |forwards|. r|
|00003a00| 74 73 0a 73 65 63 6f 6e | 64 0a 20 20 20 20 20 20 |ts.secon|d. |
|00003a10| 6c 65 61 2e 6c 20 20 20 | 20 28 61 31 2c 64 30 2e |lea.l | (a1,d0.|
|00003a20| 77 29 2c 61 31 20 20 20 | 20 20 20 2a 20 45 6e 64 |w),a1 | * End|
|00003a30| 20 61 64 64 72 65 73 73 | 20 6f 66 20 64 65 73 74 | address| of dest|
|00003a40| 20 61 72 65 61 0a 20 20 | 20 20 20 20 6c 73 72 2e | area. | lsr.|
|00003a50| 77 20 20 20 20 23 34 2c | 64 30 20 20 20 20 20 20 |w #4,|d0 |
|00003a60| 20 20 20 20 20 20 20 2a | 20 2f 31 36 2c 20 63 6f | *| /16, co|
|00003a70| 70 79 69 6e 67 20 34 20 | 6c 6f 6e 67 73 20 61 74 |pying 4 |longs at|
|00003a80| 20 61 20 74 69 6d 65 0a | 20 20 20 20 20 20 73 75 | a time.| su|
|00003a90| 62 2e 77 20 20 20 20 23 | 31 2c 64 30 0a 73 5f 6e |b.w #|1,d0.s_n|
|00003aa0| 65 78 74 0a 20 20 20 20 | 20 20 6d 6f 76 65 2e 6c |ext. | move.l|
|00003ab0| 20 20 20 2d 28 61 32 29 | 2c 2d 28 61 31 29 0a 20 | -(a2)|,-(a1). |
|00003ac0| 20 20 20 20 20 6d 6f 76 | 65 2e 6c 20 20 20 2d 28 | mov|e.l -(|
|00003ad0| 61 32 29 2c 2d 28 61 31 | 29 0a 20 20 20 20 20 20 |a2),-(a1|). |
|00003ae0| 6d 6f 76 65 2e 6c 20 20 | 20 2d 28 61 32 29 2c 2d |move.l | -(a2),-|
|00003af0| 28 61 31 29 0a 20 20 20 | 20 20 20 6d 6f 76 65 2e |(a1). | move.|
|00003b00| 6c 20 20 20 2d 28 61 32 | 29 2c 2d 28 61 31 29 0a |l -(a2|),-(a1).|
|00003b10| 20 20 20 20 20 20 64 62 | 72 61 20 20 20 20 20 64 | db|ra d|
|00003b20| 30 2c 73 5f 6e 65 78 74 | 20 20 20 20 20 20 20 20 |0,s_next| |
|00003b30| 20 2a 20 43 6f 70 79 20 | 73 6f 75 72 63 65 20 74 | * Copy |source t|
|00003b40| 6f 20 64 65 73 74 69 6e | 61 74 69 6f 6e 2c 20 62 |o destin|ation, b|
|00003b50| 61 63 6b 77 61 72 64 73 | 0a 20 20 20 20 20 20 72 |ackwards|. r|
|00003b60| 74 73 0a 0a 20 20 20 73 | 65 63 74 69 6f 6e 20 73 |ts.. s|ection s|
|00003b70| 2e 64 61 74 61 0a 0a 6f | 6c 64 62 69 6f 73 20 20 |.data..o|ldbios |
|00003b80| 64 63 2e 6c 20 20 30 20 | 20 20 20 20 20 20 20 20 |dc.l 0 | |
|00003b90| 20 20 20 20 20 20 20 20 | 2a 20 4f 6c 64 20 62 69 | |* Old bi|
|00003ba0| 6f 73 20 76 65 63 74 6f | 72 0a 63 76 73 61 76 20 |os vecto|r.cvsav |
|00003bb0| 20 20 20 64 63 2e 6c 20 | 20 30 20 20 20 20 20 20 | dc.l | 0 |
|00003bc0| 20 20 20 20 20 20 20 20 | 20 20 20 2a 20 46 6f 72 | | * For|
|00003bd0| 20 73 61 76 69 6e 67 20 | 63 6f 6e 5f 73 74 61 74 | saving |con_stat|
|00003be0| 65 20 76 65 63 74 6f 72 | 0a 73 63 72 69 6e 66 6f |e vector|.scrinfo|
|00003bf0| 20 20 64 63 2e 6c 20 20 | 30 20 20 20 20 20 20 20 | dc.l |0 |
|00003c00| 20 20 20 20 20 20 20 20 | 20 20 2a 20 28 43 6f 70 | | * (Cop|
|00003c10| 79 20 6f 66 29 20 73 63 | 72 65 65 6e 20 69 6e 66 |y of) sc|reen inf|
|00003c20| 6f 20 70 6f 69 6e 74 65 | 72 0a 62 6f 74 62 61 73 |o pointe|r.botbas|
|00003c30| 65 20 20 64 63 2e 6c 20 | 20 30 20 20 20 20 20 20 |e dc.l | 0 |
|00003c40| 20 20 20 20 20 20 20 20 | 20 20 20 2a 20 50 74 72 | | * Ptr|
|00003c50| 20 74 6f 20 6c 6f 77 65 | 73 74 20 73 63 72 65 65 | to lowe|st scree|
|00003c60| 6e 20 75 73 65 64 0a 74 | 6f 70 62 61 73 65 20 20 |n used.t|opbase |
|00003c70| 64 63 2e 6c 20 20 30 20 | 20 20 20 20 20 20 20 20 |dc.l 0 | |
|00003c80| 20 20 20 20 20 20 20 20 | 2a 20 50 74 72 20 74 6f | |* Ptr to|
|00003c90| 20 68 69 67 68 65 73 74 | 20 73 63 72 65 65 6e 20 | highest| screen |
|00003ca0| 75 73 65 64 0a 6e 75 6c | 6c 73 74 72 20 20 64 63 |used.nul|lstr dc|
|00003cb0| 2e 6c 20 20 30 0a 61 72 | 67 73 74 72 20 20 20 64 |.l 0.ar|gstr d|
|00003cc0| 63 2e 62 20 20 36 2c 27 | 73 65 63 6f 6e 64 27 0a |c.b 6,'|second'.|
|00003cd0| 70 72 6f 67 6e 61 6d 65 | 20 64 63 2e 62 20 27 5c |progname| dc.b '\|
|00003ce0| 41 55 54 4f 5c 53 43 52 | 4f 4c 4c 2e 50 52 47 27 |AUTO\SCR|OLL.PRG'|
|00003cf0| 2c 30 0a 68 61 64 65 73 | 63 20 20 20 64 63 2e 62 |,0.hades|c dc.b|
|00003d00| 20 20 30 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | 0 | |
|00003d10| 20 20 20 20 2a 20 42 6f | 6f 6c 65 61 6e 3a 20 57 | * Bo|olean: W|
|00003d20| 61 73 20 70 72 65 76 69 | 6f 75 73 20 63 68 61 72 |as previ|ous char|
|00003d30| 20 61 6e 20 65 73 63 61 | 70 65 3f 0a 0a 20 20 20 | an esca|pe?.. |
|00003d40| 65 6e 64 0a 0a 0a | |end... | |
+--------+-------------------------+-------------------------+--------+--------+