nios2

How do I translate assembly to binary?

For example: .text .align 2 .global main .equ val,0x4712 # 16-bit binary code for 0x4712: 0100 0111 0001 0010 # Program code starts now main: # This label must be main:, not MAIN: movi r16,val # WHAT WOULD THIS LINE BE ...