Download A Graphical Computer Simulator for Systems Programming Courses
Transcript
Intel 80x86. Beck’s model ity to expose students formats and on popular addressing “real” is admirable to the variety modes machines, in its abil- of instruction commonly while found ignoring their idlosyncracies. SIC/XE’s 59 instructions are dlvialed into four formats which support 18 addressing modes, integer and floating point arithmetic, and device-level 1/0. The model provides a uni- After SICSIM was adopted at Auburn three years ago, it soon became clear that the clumsy interface was frustrating student attempts to employ the tool. Figure 1 presents the output from an interactive SICSIM session. Although there are only five commands, they are cryptic (one letter each), somewhat ambiguous (e.g., Sta~t vs. RurJ), and unforgiv@ (compare adecimal extent, disassemble compiler design. The accompanying lator makes it possible for students software code” for the SIC/XE, simu- to write systems then execute their “object and observe the results. SIC SIMULATOR VI. S comnm:s fT~RT,R(w,E(mTER,D(m, H(comT,B(KPTsQ(uIv Sm COBIll~D: S (TIRT,n(UU,E(mTER, D(UMP,E(COU3T,B (KPT,Q(UIT? DR~ A=FFFFFF X=FFFFFF L=FFFFFF S=FFFFFF T=FFFFFF P=OOOOOO CC=LT B=FFFFFF COII04AMD: S(TART, R(U3,E(19TEB,D( D 0000-0090 UHP, H(COUET,B(KPT,Q (UXT? ~ elements tion 6910087A 1740034B 10002EO3 40002900 0010 01332007 4BIOO06C 3F2FEC03 20 E.90F20 0020 69010003 0F40004B IOO06C3E 0030 B400B440 76100800 E3203A33 2FFADB20 0040 34AO0433 200857&0 31 B8503B 2FEA67A0 0050 29eDOOOl 90411340 004FOOO0 B4107740 requiring instructions to integer 8 and is in hex- in lines execution that the student and manually or character non-existent. form. hand- convert Error Students data detec- complained graphical user interface. The resulting tool, xSICSIM, utilizes the X Window System ,[8] platform to provide simple and intuitive access to the basic functionality of the simulator (see Figure 2). xSICSIH’S helps tion. dent 4003B410 notation, is almost of blanks on program that testing and debugging their results was easier by comparing it to printed output than by using the simulator. To improve SICSIM’S usability, we added a LED-like 0000 the effect 3). All information form basis for teaching the fundamentals of assembler, linker, loader, macro processor, and to some rich light students visual displays feedback — in the form and color see the results The graphical presentation interest, making learning highlighting of program of — execu- also increases stumore fun. As the 0080 00E32012 332 FFA53 AOIODF20 09B8603B simulator executes instructions, the user can observe changes to the contents of memory, registers, 0070 2FEF4FO0 00F10046 4F460000 00000000 and the program 0080 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF viewed and manipulated 0090 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF CDHI!AlfD: S(TART,R(US,E(ETER, D(UIIIP, H(COUYT,B(KPT, Q(UIT? R~ iOti IK4TRUCTIOES (TART, R(IJM, H(COUST,B(KPT, q(urT? E(ETER,D(UHP, Him COHMAED:S(TART, Il(US.E(llTER, D(UHP, H(COWT,B(KPT, q(UIT? R~ I fisTRucTIOms P=ooooel ExEcuTED COllMAMD:S (TART, R(US, B(ETER, D(UHP, E(COUIT, B(KPT, Q(UIT? Rn 1 IESTRUCTIOES P=OOO064 COHHAMD:S(TART, EXECUTED R(U8,E(BTER,D(UHP, H(COUIIT, B(KPT, Q(UIT? D 00000090 ~ EO E$?JDIHGADDRSSS SPECIFIED COMHARD: S(TART,R(U~,lZ( ETER, D(UHP, E(COUHT,B(KPT, q (uIT? E RA FF H COHHAMD:S(TART, R(IJI, E(ITER, D(~, H(COWT, B(KPT, q(urT? E 0006 ,EA ❑ IEVALID ADD~SS SPECIFIED IEVALID MEHORY COETEMTS SPECIFIED COMMAllD: S (TART, R(UM,13(MTER, D(W, indicate (hexadecimal, decimal, binary, and ASCII), with automatic conversion between them. An automatic indicating how the object code is interpreted by the simulator. XSI CSIM’S interface mechanics, based on single-stroke access to common functions, reduce the likelihood that new errors will be introduced by typing mistakes. Finally, students are more productive because bugs are easier to identify and fix. Thb paper describes the structure of XSICSIM. Although the interface clearly was designed to enhance the functionality input SICSIM of Beck’s SICSIM, the prin- ciples are equally applicable to a variety of related tools (e.g., MicMac [4], CPU SIM [5], MIC-10 [9], SIM68 [10]) used in teaching computer organization, assembly-language programming, and systems E(COWT, B(KPT, q (UIT? Components 1. Sample can be formats programming. qm Figure in several familiar disassembly feature dissects the current instruction into opcode, addressing mode, and operand fields, EXECUTED P=OOO06F COSMMD:s count er. The information session; numbered lines typed by the user. The xSICSIM graphical 158 interface of xSICSIM system exploits technology. recent Its overall advances structure in