OHIO SCIENTIFIC ASSEMBLER EDITOR and EXTENDED
Total Page:16
File Type:pdf, Size:1020Kb
'l• OHIO SCIENTIFIC ASSEMBLER EDITOR and ,· ,-. • EXTENDED MONITOR REFERENCE MANUAL }-- ■ CHAPTER .· . ~ . ·1. INT-ROD.UCtfCiN~ .............. ('!1.ll.••·~·-· •••••;:~ ..............~ .• ~•~•.i!l·•.1!1•~-:.■~---··.:•••• ~~ •••••• ".~· ............:..~~-- . - . ·. ·_ . .. ~. '. 2. BUILDING: Bl.OCKS OF ASSEMBLY LANGUAGE.......... u. ..... -~......... '" .. ~~....... ,. •. , . : ,. ::. .· .· .- .·. ) - . '. .· / _. ~,_-,:·· .. -: OPERATION .·SYMSOt.'S ...........- ............ ~.--~---~-~···.;. ...................... ,. .•••••• q ••·"·•·!1 ... ...--••• ~ ...............:;.._ • .;.:.~~~;, •• ;~~-....'ll:.~li :. < -·. • : •• ,··. • • • .- ' • ••• .:_,_ ·.·, •',,, ••• ·CONSTANTS~;. ........... ~~•:a•-•····~······· .. ···~ .......... ~.•.,.~•···· 111 ............~•· ........................... i.~···"········~··~-~~-•-:~~-"'~.-., .. :..~-~~~~-·•·~··· .,·. ' ·.. ·. c.. µBELs.·. ANO- EXPRE$$i~• ., •. ~---•--·~ ...· • .,-. ..... ~ •• ~.,----····~~-~: •• ~ •... ..:~ ........ ~:~-...... ~•. • .. ~tt~•····•·"·•·~~~,;~ .•...~.~~..:..~~········--::+:· , - ' . .. ... ' .·· - .. -.. ' . •. :- ;···. -, . ·,, - . ··A:. ·. REMARKS ............... ~....................................... ~:............................ ~.......... .c......... ~ ............; ...... ~.~~~ ........~ •..-~ ...........~. '•. , . .. - '_- . : .. ·. ·:·· ·. : . •' .•· a. INSmUCTIVE&~--~---~···········~~~---··~----" - . .................· . ~~----•·~---.·. ••• _.-................. ~~ •••..•. ~ ..................................- . :,l.~~-~~-:•·~:~.~----·. -- , .. .. ••··._.·'................. ~3-5 (1) ·Direct ·.Addtessing·.~ .........................................,, •• ;.................................................. ~~· ........ ;~ .... :;~ ••• ~ .......... 3,4· (2l lM~lat~. Address~ng .............~·-~--··•~··~~~~-• ..•··.,~---~·•·~··••ff••···•··~-····"'!·•· .. ···••4!•• ..······--~•·,~·~,.~.~·•··•.,·~~· ..• .................. 4 (~) 1.ndexed •·· Addressmg................... ;•• :········ ...... H.: ... ~~................................... ~ .........:. ..... ,..; ...• ~..• ~............... 4,5 (4) ... tndlF~ct ••~~~--~~~-- -~•~-~., •• ~-:--~~I!••~~ ... ........... .....".-:.~ • .;~...... ~,•.••~~~~I!•~.•·~•·~ .. 5' ~ 'Add~tnu.••·~~- ■ -'!•··•·• ·. .· ·,. ~--~- ■ ••.•·ra~•'!·.- ·~••.■--~•-···• ~■-•~•• .. ",. - (5) ·_Implied Acicl~sl-rig~ ... ~--•-···~.,-~.-~.•--··~,•.--•·~~---H ......... ~.~··----~·~··••.•·•~ ......_:•·~•.••,•-:~---·••~.•~~.•··,•· ............ _•.-.... _..~-.!••·••.•--•----· 5 . c. DlRECTIVES-~.~--••·•··--•····••4!~••·--~• .. .,. .... ~•!I••··•;. -~ •••• :....~;.. •• ·•••••• .. ~~ •••. .-,. •.••. ·: ....· ~ .......... ~~-····. •.- •••• ·-. ••••.•.••• ~ .............·- ~ ........11t~•~•il••········•···· S-7. :(1,) Th9 ·LQC:ation .. Coun•r-............ ~..... •·••·•~l!••ir-••··· ... •....... ~- ..... ~-•• : ...............~~-• ... ~ ... "' ...·...... ~ ....... ~~.. ~ •••°i~~-~·•·•.~•···•••.••·•····~s~S (2) Defining·· Labels................... ~ •• ~ .•••••••• ;.......................... .; ........ ~ ...................... ~~.... ~ .........~ ............... ;•.••••.• ·6 •. (3) ~. Lo~i0f1-s.............. ~. .a:••?••~··~•·~~; •• Q ..................; .......................;.., ••.•••.•:..-..~ ...~ •••• ~ ••••11 ...~ ...........~- .. ~111••·-.. ~··~· ......................... ~~· :6~7 (a) Byte.............. '!" ....... ~.•· .. ·····,····.. ;.··.... ~~ ...-■~ .........:~---~.•~··•~.-·~~•-- ■•--·•·:■~• ..·····• ..... ~~~·••.••.•11!•••- ■:•~~.'!•l!l•~.'!"!i••· .. ~·~•~-~~·~···"•••,•·.. •••.................. ~--·~ (b) .Qbyte •• ,.•·•••il'!" ■....... ~ ............. ••••••• .... :■-aa.,i, ..~ ............... , ••~.;~~-~·••••~•~•.••••~l!l•••~ .. '!'~•.••·•«~•••-il.••• ....... ~•~•,lli:.~~-iu,w-■■••~~~-~~~·•·•~.•.... • ........~••~• .... •••n .. ·6~·7_ (c) Word.............. H••···~ ..········••.•······ .. ··• .. ~ .................................. ~ .................·.~ •••••••••••••u .................................. 7·· , . ; .. BUILDING ANO EDITING AN. ASSEMBLY LANGUAGE ·souRCE. s .4. • •• ••• .- ' • : • .- Fll.E: ',· •..... • I' "°~ ...............• • • ~ • . ·. :. ' .. ~ :· 5:. .ASS,EMBlY COMMANDS~ .......... ~·-·~ ..........~ ............. ~ .. ·•••·•·• ..............~ ...·.l!l~•-.•·· ............... 1!1-• ......... ~··.... ~ ......-...~~.l!J••••:•~-·~ ........... 9 , 6 •.·AN EXTENDED .EXAMPLE.(llfERE' ARE MANY SHORT EXAMPLES.IN TH£ PRECEDltro .SECTIONS) .......... ~................... ~.~-•·•·,;•~•••··•--·-- 10.13 . 7. RUNNING A. MACHINE tAN(lUAGE PROGRAM............ •• ....................... ••~.;~ •• •• :............ 14 .· . ~ . ~ .. ~:. ,. .· ~ . .. : . .A. USJHG.·THE•.PROMMONITOR-CASSETTE BASED SYSTEMS ............. ._ ..,~ ..~ ....................... :~ .... m ....... 14· B •. USING nte.' DQS. KERt4J:LJ>tSK·. BASED SYSTEMS•••••••••••• ~........................................ ~ ............ m ••••••••• 14 -· . ' . - C•. USING· .THE• PROM·MONtTOR-OISK .. BASED S.VSTEMS •• ~ .......... ~~............... ,(.. ~•••9!•:~•···•·:.~.~.~~;~.......... "!t ••••••••••••• ~ 14 ' . 8. TH.E '.EXTENE>E·o.·.MONITOft;·, ••~~•- .., ...... ~··•~lli··~· .. •·~ ...........................~ .... ~ ••. ~ ....._:.- ... ~•• ~-•···;;. .. ~~~.;~ •.. ~-•:-••·• .... ·~•-• .. •· t•5.-,t9: A~, THE EM .. _c·bMMANDs~·~.~ .......... -.~~·--~-:a-~ .............. ~[:-11••··~····••:a••··-··· .. •••• .. ···~~~ ........................... -........ ~~~--~···•··~~ ........ :.............. 1~ 1.7 B•. ·.THE. R ANb M.· COMMANDS IN DETAJt; WlfH EXAMPLES ............................. : ••• ,.L.•••·•••m~••••• ..~••~••• ....•:11 • C •. BREAKPOINTS ANO.QJB~GING .• WIT" EXAMPLE$;...................... m••'.···· .. ·•· ..•·•.:· ....... ~i ................17 • 19 PAGE .9 • , .. · . , .. ·, _. A.:. USR: FUNCTION·....................... ~ ........................... ~ .......................................................................................... 20 · .• 8. DISK:! ·~Q.O:... ............ .-:~-~!I~•-·· l!IJl•···"·'.-~~ ••••••.•.•~---~~- •• ~-...........·.ll!,_.~ ••• ~.~· .... ··~ ... ········~-~........ ~··· ... ·~ ..................................~ •• ;..~~---: ••• ~ •• 20 · • ~ ~ ~'l'"'!••·~~---~-~~ ............. ~.......... ______ ............... -......1!1_•••-···•·······• .............. ~···· 20,21 c. ·01sK.f ''XOT~ .............. ..................~_ ........ ....... ~.:.................. APPEN.DICES .·. ', . .· .A. ASSEMB·LY ·iRRQRS.......... ~~--~.•-···~·~···•-····~·•··•1!1~••· ....... ..;._................ .,.................. ~ ..................... 4;"•~·--·•·!'• .................... ~••····~~ ........ 22. •• 6502 INSTRUCTION· .ADDRESSING .. MOOES, •..•••.•· ••. .:.: ......................H .................................. ; ................... 23 o. os~· .·VtRStON· ·.,oF ASSEMBLERIEDiroR~---~"--·•-~ ................-.- ....... ~····· ..··---·· .. ••••·•••• ..•••·· .. ··•~······:········2s E~· CASSETTE' VER$1O~. ·OF ·"SSEMBLE~IEDIT:OR~ •• -~:••-~·-•·~·•·• ........ "•••••••••• ~····--~~ ....................... _.......... ~a&~21' ·f. EM· COMMAND·· SUMMARY .................... ~ ...................................................................................................28' ' . / G. :·0$-650· V·EASION OF EM~··············~···•:a.ii••·· ..·····•·~--"··~···•··· ..... ,. ................ ~.•······· .... ~ ........~ .............. .:...... _•••• ~:•••• - ••. 29. H~- ·cAS.SETTE:·veRSION-·OF. EM.................... ·-··~·······;·····••.•······ .. ·••.•·····.:............................... ~ .................. ~ ................. ~30: ·•~ ROM .MONITOR, COMMANDS............ _ ......................... H........................................ · ...................................... 31 ·. ,~ ASCII. TAEiLE. ................................................. _..................................................... lll ......~ ...l! .........................................~ ..................................................... 'a ....................... ~.-..132 'K.. CHECKSUM.·· ;'FORM'At .................... ~ ............................... _..................................................... ~~ ............ ~ .............................................................- ................................... 33 . ; . -L o&-eso- ·coMuANoS- A"o eRaoRS. ... -...... ,l!.ll•-··.............. '!~ .......~ ................................................ -.................................. ~ ........................... -:-.. ~· ......... :a4~3s . M; FLO~TING. POINT STORAGE FORMAt............................ ~ ....~ ....................................................... ~ ......... 37. Na !~-.. DIS4SSE-BlV· TABLE ....... - ............--.~ ...... _.......................................... ~ .. ~ ..................... ;...... ~•~· ............... "' .........: ......................... 1.r.= ............................. -.3$ • .o .. 6502 .REFERENCE LIST ............................ - ........................................................................................;;39,40• IN:D1:X· ............................................... ~ ............................... ~ .................................................. ~ ....... 41,42 ii CHAPTER 1 INTRODUCTION • This manual is intended to be an introductory and ASSEMBLER-The program which translates an as reference manual for entering, editing, debugging and sembly language program into machine language. The running assembly language programs using the OSI OSI Assembler/Editor also contains features which Assembler/Editor and Extended Monitor. This manual allow the editing of assembly language programs. While is not intended