List of y86 commands?
Asked Answered
M

2

6

I am looking for a way to convert some code into it's y86 equivalent. The problem is I am having trouble finding a good list of y86 functions. I can find some functions but not a good list of the main functions available. Does anyone know where I could find such a list?

Meeker answered 24/10, 2012 at 18:8 Comment(3)
Yes, it is but I am still having trouble finding where there is a list of commands.Meeker
@pst I looked but is there a list of instructions there?Meeker
Voting to close as resource rec.Macegan
M
5

See Chapter 4: Processor Design (Preview) which is from Computer Systems: A Programmers Perspective1 which has a great reference of all of the available functions. You have to scroll down a ways to find the reference. But it is there.

The instructions listed are:

halt
nop
rrmovl
irmovl
rmmovl
mrmovl
OPl (integer operation)
    addl
    subl
    andl
    xorl
jXXX (branch condition)
    jmp
    jle
    jl
    je
    jne
    jge
    jg
cmovXX (data transfer condition)
    cmovle
    cmovl
    cmove
    cmovne
    cmovge
    cmovg 
call
ret
pushl
popl    

1 This was authored by Randal E. Bryant and David R. O’Hallaron, who wrote an earlier paper that omitted the Data Transfer Conditional operators.

Meeker answered 24/10, 2012 at 18:43 Comment(1)
+1 For the nice link. I was trying to source the authors/publication and came across an older/work draft that omitted the cmovXX instructions, so care should be taken in what y86 instructions - including any extensions - are available.Crowley
U
4

This is easily the best resource I've found.

The document includes the instructions and their corresponding hex values, as well as setup code for someone writing y86 from scratch.

Understood answered 17/11, 2016 at 3:21 Comment(1)
Can you please take a look #70919923Villiers

© 2022 - 2024 — McMap. All rights reserved.