tasm - Illegal immediate error in assembly code - wrong direct addressing? -


i don't understand why error in assembly code. want assign byte 0ah @ memory location address 0100h (in data segment). error "illegal immediate" @ line 6 believe direct addressing using fine - saw similar examples in texts.

.model small .data .stack .code .startup     mov byte ptr[0100h], 0ah      mov ah, 4ch     int 21h end 

any ideas?


Comments

Post a Comment

Popular posts from this blog

css - Text drops down with smaller window -

php - Boolean search on database with 5 million rows, very slow -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -