How to assemble and simulate *.as file?

Viewed 28

I need to assemble file written in DLX or something like this with .as extension into .mc. Then simulate it and create report

Here is code

        lw   0  1  res 
        lw   0  2  star   
        lw   0  3  count
        lw   0  4  finish
begin   add  1 2 1
        add  2 3 2 
        beq  2 4 done
        beq  0 0 begin
        noop
done    halt 
res     .fill 0
star    .fill 2
count   .fill 1
finish  .fill 10

In example everything is good, but i cant find nothing about this commands running in cmd If you does't want to open the picture i need to write in cmd - "assemble file.ts"

I tried to install Windows XP, but it also doesn't work

Just, "assemble is not recognized as an internal or external command, operable program or batch file."

0 Answers
Related