WSHIFTShift Key (Symbolized by~hereafter)Ifthis keyispressed, theShiftIn modeisselected("W"isdisplayed) and theShiftInfunctionson the keyboa
ISTOP]Stop KeyIfpressedduring program execution,"STOP"willbedisplayed and program executionwill stopatthe endofthe line.During execution tra
I ..**$ ( ) ? : ; •[Q](RJ mlK)[Ilm[Q]CD[Q] 0GOSUBFORTOSTEPNEXTGOTOIFTHENPRINTOOw[ID[]]@]lK)QJlKJITJIlfIIJIlHSTOPENDDEfMRUNLISTINM[]]OO@J[y][[]lliJOO~A
EXT~RUN D£GRADGRA TR5y,-,PRTSTOPWRT••...•...••...••..II•••n• • • • • • ••• •••.-• •• •• ••••••• • • • • •.-•...111•••..,.• • • •••••II• •• •
Toadjust the display contrastusethe control located on the right sideofthe computer.11111II1111111111IUTurninthe directionofthe arrowtoincrease contra
(3) Insert the packintothe socket on thecomputerbodyand slide the claspintoalocked position.* Never touch the connectorportionoftheRAM packorthePCBpad
Memoryexpansionisperformedinunitsof1 using aDEFMcommand.Example:Expandby30and make 56.Operation:SelecttheRUNmode(press~~)ortheWRTmode(press~[I]).DEFM3
Manual calculationandprogram calculation are performed inthe"RUN"mode.(Press~[e)and RUNwillbedisplayed.l"0EG","RAO"and&q
Example:(1X105)77=14285.71429(1X105)77-14285 =0.71428571005871114285.714291005.71:114285110.7142857When the calculation result exceeds 1010(10,000,000
Deletefractionfromthe integerportionFRACXChangetoabsolute value I x ISymbolize positive number~1O~Onegativenumber~-1Roundoff(roundoffx at 1oy)Random n
LIMITEDWARRANTYrI.II.III.TERMSANDCONDITIONSOFSALEANDLICENSEOFRADIOSHACKCOMPUTEREQUIPMENTANDSOFTWAREPURCHASEDFROMARADIOSHACKCOMPANY-OWNEDCOMPUTERCENTER
Ifthe formula or substitution,statement donotconformtoBASIC grammarorifthecalculationrangeofthe computerisexceeded,anerrorwilloccur during execution a
• Symbol inputExample:Input$#?Operation:li!?__~_Example:Operation:Input@¥S1~8...(extension mode designation)~8...(extension moderelease),Extensionmo
• DeletionMove the cursortothe positiontobe deleted andpressthe~Key.Eachtime the keyispressed, one characterisdeleted and the characterstothe right mo
Manual calculationsarenotmadeautomatically by storing calculation formulasasaprogram.Instead, the calculationsareperformed manuallybysubstituting the
Example~Store 1234 in variableA.Operation: A~1234IIIExample:Addthe resultof23x56tovariable K.Operation: K§)K023056tilIA=1234I-25.5This manually perfor
• Memory calcu lationExample:12X45=54012X31=37275712=6.25Operation: A§] 12IIIAD45.AD31.7511AUIExample23+9=3253-6=47- )45x2=909973=33Total22Operation:M
4-3-2HowtoPerformFunctionCalculation• Trigonometric functions (sin, cos, tan) and inverse trigonometric functions (sin-I,cos-1,tan-I)Whenusing trigono
Example:101.23=16.98243652(To get the antilogarithmofcommon logarithm 1.23)Operation: 10l!!!J61.23l111r--1-6~.~9~8~~~4-3-6~5-2----Example:5.62.3=52.58
Example:1-78.9~5.61=14.089Z8571Operation:ASS~c::S1:I78·9a5·6~611DExample: The integerportionof7~~Ois81.Operation:INT~b7800a96~61B114.08928571* Thisfun
One-dimensional arrays areusedwithletters attachedsuchasAU),B(j) I etc. Sincethese arraysareusedbothwiththe normal 26 memories andwithexpanded memorie
NOTWITHSTANDINGTHEABOVELIMITATIONSANDWARRANTIES.RADlOSHACK'SLIABILITYHEREUNDERFORDAMAGESINCURREDBYCUSTOMEROROTHERSSHALLNOTEXCEEDTHEAMOUNTPAIDBYCU
Program calculationisa method for:CDProgramming the calculationorformulatobeexecuted.(2)Storing the programinthe computer.@Obtainingthe result automat
• HowtoCounttheNumberofStepsA command or afunctioncommand in a programuses1 step.A line number (numerical valuesfrom1 through 9999)uses2steps.Example:
A character variableisnota numerical value - althoughitmay consistofnumbers -buta variable which contains a character string. Inotherwords, "123&
5-3-1ProgramWritingStoring a program in the computer memoryiscalled "programwriting".This operationisperformed through keyinputasfollows.1.D
Operation:CDDesignate the WRT mode.~[I]® Designate programareaPili.Numberofremaining steps!544P:'0:123456789,Program areas withnoThecurrentlydesi
suretouseittoclearly designate the end location.• The spacing between the line numbers and commands and between commands andoperands, facilitates read
Example:Tostartfromline 20.Operation:RUN20.*FormethodCD.itisnotnecessarytodesignatetheprogramareatobeexecuted.However,formethodCV,itisnecessarytodesig
LISTIII• Program editing consistsofchanges, additions, or deletions in oneorvarious lines,orevenrearranging the orderofthe programtoallowforlogical ex
a.Partial changeExample:Changethe"+"on line20ofthe previous exampleto"*".Operation:•Ifthe P0 program areaisnotdesignated, designat
b. Complete changeofone lineExample:Change"w = A -B"on line30to"w = V/2".Operation:~[I)• Writethenew line 30.30uW§lVIIZ.• Confirmt
Thankyouvery much for purchasingthePC-4. This handy, personalcomputerisexcellent forthosewhoare beginningtolearnaboutcomputers.WiththePC-4, you canent
let'slisttheprogramtoconfirmtheadditions.~~L ISTlmREADYPO~----~---18INPUTA,S28V=A*B30W=V/235U=V*240PRINTV.W_PRINTV,W,U50ENDREADYPO@ Deletiona. Pa
• Listtheprogramtoconfirmthedeletion.~lelLISTIIIREADYPO10INPUTA,S1--------------..-._~-30W=V/2-_.-_.._._-35U=V*240PRINTW,U50ENDREADYP0b. Complete dele
@ Line renumberingExample: Write the following programinP2.'10INPUTN20M=Nt230L=NtO.540PRINTM,L50ENDMoveline20between lines30and 40.Operation:~rn•
• In this condition, the contents on line20weremovedbetween line30andline40but line20stillremains,sodelete it.468476f11.;,,,~3456 789li!Irn20IIIREADYP
(2) ConversationtypedebugIfanerror occurs during program execution,anerrormessagewillbeshown on thedisplay.Theseerrorswillbeshowninline units andwilli
(3) DebugwhileexecutingtheprogramConversationtypedebugisperformedbyobtaininginformationfromthe computerin theformoferrormessage.However, there maybeoc
•Ifthe programisresumed, it will stopatthenext STOP statement andthevalueofVcanbeobtained again.IIIYE1~513BSTOP'jTOP• By repeating this operation
5-6-1Input Command• Input StatementAninputcommandisusedtoinputthe data during program calculation.Aninputstatementisusedtoinputdataintoa variable usin
• Memory calculationExample:12X45=54012x31 =37275-;-12=6.25Operation:AEJ12111AD45111A03111175aAIIIExample23+9=3253-6=47- )45X2=9099--:-3=33Total22Oper
TheoutputcontrolfunctionfollowingthePRINTstatementisaCSRfunction,whichdesignates the location where thefollowingdataistobedisplayed.For the numerical
Chapter 5 ProgramCaIculation...275-1Program Outline...••...•...275-2 Program Fundamentals...
Using the valueofthis numerical expression, a position on the displaycanbedesignatedasthe starting placefordatatoappear.The methodforcounting the posi
jumptothe line number whichisthe resultofA*100(jumptoline 200ifAis2)jumptotheP2programareaGOTO#2GOTO#Xjumptothe programareawhichisthe valueofvariable
"THEN"or" ;If(semicolon)areusedseparately depending upon what follows.5-6-5 Loop Command•FOR-NEXTstatementAFOR"NEXTstatementisused
Example:Toincrease variable I in incrementsof2 between 1 and 10.FOR1=1TO10STEP2\NEXT1Toreduce variable A in incrementsof0.5 between 50 and1.FORA=50TO
FOR1=1TO5STEP1FOR J=2TO2mSTEP2x~NEXTIThis kindofFOR-NEXTloopcannotbeassembled.NEXTJFurthermore,exitfromFOR-NEXTloopispermittedbutentrytoFOR-NEXTloopis
The numerical expressionfollowingthe GOSUB statement indicates the initial linenumberofthe subroutine area.WithoutaRETURNstatement at the endofthesubr
• NestingSimilartotheFOR-NEXTstatement, GOSUB statementscanalsobestacked. Thenumberoftimes the subroutineiscalledoutisfixed.This nestingcanbeperformed
5-6-7MultistatementA multistatementisusedtoconnecttwoormore commands using aExample:I~• ' I(colon).1020301020A=2}B=1e10A=2:B=1e:C=50C=50PRINT&quo
5-6-11 List Command•LISTcommandA LISTcommandisusedtodisplay the program contents.Itcanbeusedin both the"RUN"mode and the"WRT"mode.
5-6-13 Output Format• SET commandA SET commandisusedtodesignate the displayoutputformat.Itdesignates thenumberofeffective positions and the numberofde
Thiscomputerisdeliveredtoyou throughourstricttesting process, high-levelelectronics technology and rigidqualitycontrol.In ordertoensure the longevityo
•VALTheVALfunctionchanges the numbers in a character variableintoa numerical value.Format: VAL (character variable)Since thisfunctionchanges the numbe
Example:~rnCLEARIII····...·c1earsa single program~[1)CLEAR AlID·········c1ears all programs in allareas.5-6-17 Option Specifications• Cassette Magnet
• Recording All ProgramsFormat:SAVEA["filename"](Item in brackets maybeomitted.)This command simultaneously records all the programs whichar
• Data calloutFormat:GET["filename"]variable 1 [, variable 2](Items in brackets maybeomitted.jThis commandcanbeusedeither manuallyorbywritin
Argumenterror•Foracommandorfunctionthatrequires anargument,theargumentisoutsidetheinputrange.SyntaxerrorMathematicalerrorUndefinedlinenumbererrorVaria
INPUTINPUTvariablestringCharactervariable'"KEYPRINToutputcontrolfunction{:}outputelement~:}...]CSRn{:}(O~n~l1)GOTO{Iin~number}variableIFcom
NEXTVSTOPENDVACLIST[linenumber]LISTARUN[linenumbedCLEARCLEARA{En(D < n ~8)SET~n(Q < n <9)LEN (charactervariable)MIDlmLnllV A Lkharactervariab
LOADASAVE["filename")LOAD["filename"]SAVEA["filename"]LOADA["filename"]PUT["filename"]variableGET[&q
-TypePC4.-Fundamental calculation functionsNegative numbers, exponentials, parentheticaladdition,subtraction,multiplicationanddivision (withpriorityse
• Display elements12-positiondotmatrixdisplay (liquid crystal)• Main componentsC-MOS VLSIand others• Power supply2lithiumbatteries (CR2032 Cat. No. 23
• Power SupplyandBattery ReplacementThisinstrumentusestwolithiumbatteries (CR2032 Cat.No.23-162)forapowersupply.Ifthedisplay contrastisweak even whent
SERVICE POLICYRadio Shack's nationwide network of service facilities provides quick, conve-nient, and reliable repair services forallof its compu
®®CD®TkIDPATOMPAT OFFCV£:II:TiS0wm-I;)D)"S'I'IPRTSTOf'oo;GIIAOI!IGIlAGOTOPC-4WRTTRACEONIJlTAACEOFFON'NS~<--EXT-MODE!imalPl
Key operation in the ShiftOutmodeIM@@]~[]]C2JlRJ[[)OO[!J[Y][illO]@][E]0[[]~[[]@](]JQ][[]w~000[]JCYJ[[)ffi](MJ~§]OOKey operationintheShiftIn mode.I..1*
Kommentare zu diesen Handbüchern