Please replace with related assembly code Hello World
Please replace ??? with related assembly code.
< > ‘Hello World!’, `\ ` ;
str2: db ‘Good luck in your midterm.’, 0xa;
strlen1 equ $ ??? ;length of ‘Hello World!’, `\ `
strlen2 equ $ ??? ; length of ‘Good luck in your midterm’
(Hint: “$” means the current memory location)
Solution
LENGTHOF wl gives length of string.
strlen1 equ $ LENGTHOF ;length of ‘Hello World!’, `\ `
strlen2 equ $ LENGTHOF ; length of ‘Good luck in your midterm’
