Questions tagged [sic]

SIC is a toy ISA, short for Simplified Instructional Computer. SIC/XE is SIC with Extra Equipment, an extended version of the ISA

SIC is a toy ISA, short for Simplified Instructional Computer.
SIC/XE is SIC with Extra Equipment, an extended version of the instruction set.

They're used in the textboook System Software: An Introduction to Systems Programming, by Leland Beck.

18 questions
3
votes
2 answers

Tokenizing a SIC Assembler source

I've pretty much finished coding a SIC assembler for my systems programming class but I'm stumped on the tokenizing part. For example, take this line of source code: The format (free format) is: {LABEL} OPCODE {OPERAND{,X}} {COMMENT} The curls…
Mikey D
  • 71
  • 1
  • 10
1
vote
0 answers

SIC about BYTE X and C

BYTE X'05' BYTE C'05' what is difference between X and C? if I want to write object program,how can I make LOC?
Air_peter
  • 11
  • 1
1
vote
1 answer

Adding and storing value in SIC/XE machine

; Assembly Program ;¯¯¯|¯¯¯|¯¯¯|¯¯¯|¯¯¯|¯¯¯|¯¯¯|¯¯¯|¯¯¯| ; | ; Programmer: joe247 | ; | ;___|___|___|___|___|___|___|___|___| ; Write a SIC/XE Program program in…
1
vote
0 answers

Fibonacci for SIC/XE assembly

Can someone help explain the following code. I'm trying to add comments to the following SIC/XE program that explains how this program is calculating a fibonacci sequence for the first 20 numbers, starting at 3. FIB START 0 First LDT #3 …
LiterACola
  • 11
  • 1
1
vote
1 answer

how to identify the n,i,x, and e bit settings(SIC/XE)?

I have a project for my System Software class, we have to produce a subroutine to decompose a line of source into 4 components: label, op code, operand1, and operand2, and identify the n,i,x and e bit settings. I'm having a problem trying to figure…
fang_dejavu
  • 625
  • 2
  • 15
  • 22
0
votes
0 answers

Problem with the SIC 6.0 not connecting to the Data center after a Update

Recently i updated my SIC system to its newest version. But after doing it the same started showing a error about its SQL server. The error translates to english as: The system can't connect to the data center…
0
votes
1 answer

How can I obtain the length of text from object code in SIC Assembler?

COPY START 3000 ** LDA THREE ** STA ALPHA ** LDCH CHARC ** STCH C1 ** LDCH CHARZ ** STCH C3 ALPHA RESW 3 THREE WORD 3 CHARC BYTE C'FO' C1 RESB 3 CHARZ BYTE C'EOF' C3 RESB 3 ** END ** This is the Input file I got. And right below is the Intermediate…
Dalim Oh
  • 1
  • 2
0
votes
0 answers

How does (SIC) assembler print hash tables?

I am trying to make an assembler in C for the SIC architecture. And I saw that symbol table and object code table are usually made with hash tables. What I wonder is, how assemblers print these tables. Do they memorize the insertion order of those…
Dalim Oh
  • 1
  • 2
0
votes
1 answer

sicxe assembly language programming

the following are assembly language codes of an sic/xe machine.... clear a ldx #128 loop jsub getc rmo a,s shift s,4 jsub getc addr s,a stch 0,x tixr x,x j loop getc td input jeq getc rd input…
AvinashK
  • 3,309
  • 8
  • 43
  • 94
0
votes
0 answers

What is the result of executing DIV #0 and DIVF #0 instructions?

In the SIC/XE architecture, what happens after execution of DIV #0 and DIVF #0 instructions? How do other architectures deal with divide by zero situation?
0
votes
0 answers

How can I translate sic/xe to object code?

Above sic/xe code, I don't understand translate process. 105F LDT LENGTH => 774000 1056 EXIT STX LENGTH => 134000 I already know translate opcode and 000. But I don't know how can I get 4. Please give me kind explanation.
oldkrak
  • 47
  • 5
0
votes
1 answer

SIC/XE Can I put new value to a value that already has its own value?

Hi I'm taking a system software class on my uni and I'm making an assembly code with SIC. I've already written a code with C. So I'm translating it to SIC and I got a question about variable policy of SIC. Can I reuse population to store the…
jamie 8910
  • 247
  • 1
  • 3
  • 10
0
votes
0 answers

BYTE operation confusion in SIC assembly object code

While trying to make an assembler for SIC, I thought of these questions. LABEL BYTE X'AB' Here the generated object code would be AB. So the object code might look something like this as an example. 001045 4C1046 AB 001045 Here I have used…
0
votes
1 answer

assembly language syntax issue for arithmetic

I have a fairly simple question regarding assembly language. We are using SIC/XE architecture which is basically make believe and for educational purposes only, but does follow the common conventions of other architectures. Now for my question and…
enigma
  • 27
  • 1
0
votes
1 answer

confusion on generating object code in SIC assemblers output

So right now I'm trying to understand how object code is generated but thse two lines really confuse me, anyone want explain it to me? RSUB is 4C0000, I understand RSUB is 4C Mnemonic, but where did 0000 came from? EOF BYTE C'EOF' Object code is…
user4139003
1
2