Questions: 338

Answers by our Experts: 279

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

write a function B() in assembly lang programming which takes the argument as 64 bit integer. It should interpret that as a 8-byte ASCII string and print individual

characters on screen. You need to call the write() system call from assembly language using the syscall instruction, passing appropriate arguments.

Modify the stack in the function B() in such a way that when B() executes

the ret instruction, it jumps to a third function C(). C() must also be

written in C.


1.Write a program with three functions A(), B() and C(). B() is written in asssembly lang.

2. A() should call B() passing a 64-bit integer as an argument.

3. B() should be written in asm and interpret that as a 8-byte ASCII string and print individual characters on screen. You need to call the write() system call from assembly language using the syscall instruction, passing appropriate arguments.

4. Modify the stack in the function B() in such a way that when B() executes the ret instruction, it jumps to a third function C(). C() must also be written in C. This MUST happen without an explicit call to function C(). A mere ret from B, should pass the control to function C() instead of A(). Finally, the function C() needs to terminate the program by using the exit() system call.


Write a NEAR subroutine using 8086 assembly Language (with proper comments) that returns the smallest byte value in a byte array of length 5-bytes. The array is declared in the calling program and the base address of the array is passed to the subroutine in the stack. You should write both the calling program and subroutine.


Write a program using 8086 assembly Language (with proper comments) that accepts a two-digit input from the keyboard, converts it into an equivalent binary number and subtracts this value from every element of an array of length ten bytes. Assume that the array is stored in the memory. Make suitable assumptions, if any.


What are the data defining pseudocode in assembly language? Short question answer this for my assignment

Write an assembly for the intel-64 program that prints a character with code 0x2d by calling a subprogram.


You have designed an instruction set architecture (ISA), whose characteristics are;

• 16 diff operations (ADD, SUB, OUT, HLT etc.)

• 12-bit address (program counter (PC), a memory address register (MAR) etc.)

• 16-bit data registers (accumulators, B, Temp etc.)

• 16-bit instruction register (IR)


1) What will be the instruction size?

2) Opcode size?

3) Operand size?

4)A number of locations in memory?

5) Memory data size?


Show Z = xy
Show [x + y/(rs/t) - u] in 3 address, 2 address and 1 address instruction format.

Write a program that take an Alphabet C (C can be uppercase or lowercase) as input and print all the character between C (input character) to uppercase Z if C is uppercase or to lowercase z if C is lowercase. NB: Implement the above problem inside Separate Procedure.


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS