Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7605463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:10:26+00:00 2026-05-31T00:10:26+00:00

NASM is not parsing command ‘ mull byte [bp+10] ‘ in the printstr subroutine

  • 0

NASM is not parsing command ‘ mull byte [bp+10] ‘ in the printstr subroutine of my program. i have rechecked the code with the lecture instructions and cannot phathom why it is doing so. also, it does not prin anything on screen or clear screen when executed either directly (32-bit win7) or via dosbox.

    [org  0x100]
jmp start

message:        db  'hello world'
length:         dw  11

clr:        push es
            push ax
            push di

            mov ax, 0xb800
            mov es, ax
            mov di, 0           
   nxt:     mov word[es:di], 0x0720
            add di,2
            cmp di,4000
            jne nxt
            pop di
            pop ax
            pop es
            ret

printstr:           push bp
            mov bp,sp
            push es
            push ax
            push cx
            push si
            push di

            mov ax, 0xb800
            mov es, ax
            mov al, 80
            mull byte [bp+10]
            add ax, [bp+12]
            shl ax, 1
            mov di, al
            mov si, [bp+6]
            mov cx, [bp+4]
            mov ah, [bp+8]

nextchar:           mov al, [si]
            mov [es:di], ax
            add di, 2
            add si, 1
            loop nextchar

            pop di
            pop si
            pop cx
            pop ax
            pop es
            pop bp
            ret 10

start:      call clr
            mov ax, 30
            push ax
            mov ax, 20
            push ax
            mov ax, 1
            push ax
            mov ax, message
            push ax
            push word [length]
            call printstr

            mov ax, 0x4c00
            int 0x21
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T00:10:27+00:00Added an answer on May 31, 2026 at 12:10 am

    According to the reference it’s mul, not mull.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a game source code but I could not assemble it on nasm
Say I have a simple nasm program to print hello!, of course in intel
i have some problems with linking nasm program for macos: GLOBAL _start SEGMENT .text
I'm currently using NASM to compile the code but there is not tool to
I have been dealing with Nasm and GNU C inline asm on a Linux
I have a sample piece of code that writes the value of the xmm6
I was lucky enough to run into some NASM code that compiled fine in
I have the following makefile that I use to build a program (a kernel,
I started assembly (nasm) programming not too long ago. Now I made a C
I want to know what is the format for writing assembler code for NASM.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.