Good night, what's the simpliest way to receive a simple char as parameter in Assembly 16-BITS, and compares to test if is the right one? I'm for 2 days searching for examples of how to do it, but no one had worked for me... I tried that code from StackOverflow and it doesn't work, the dx has 81h no the hex of the char that I need. I'm very newbie in Assembly, so I need little examples of code to understand... I want the simpliest way possible, I don't want to waste your time... Thanks. In MS-DOS shell I'll call my program with a char in front, like "MOVE A". The example in that code cited above works like an Echo, but I can't compares the char inserted on command line. I'm on Windows 98 with TASM 4.1 I tried the example of the book Art of Assembly cited on the link, of chapter 13.3.12, the one talking about PSP, and, doesn't work for what I need. I think people are not understanding what I wanna learn. Thanks guys
How to receive parameters from MS-DOS and compares it in Assembly 16-bits?
459 Views Asked by user3587527 At
1
There are 1 best solutions below
Related Questions in ASSEMBLY
- (x64 Nasm) Writeline function on Linux
- Is the compiler Xcode uses to produce Assembly code a bad compiler?
- Why do we need AX instead of MOV DS, data directly with a segment?
- Bootloader in Assembly with Linux kernel
- How should the byte sequence 0x40 0x55 be interpreted by an x86-64 emulator?
- C++ code into assembly
- Drawing circles of increasing radius
- Assembly print on screen using pop ecx
- Equivalent to asm volatile in Gfortran?
- Show 640x480 BMP image with inline ASM c++
- Keep track of numbers entered in by a user in assembly
- 8086 Assembly Arrays with I/O
- DB ASM variable in Inline ASM C++
- What does Jump to means in callgrind?
- How to convert binary into decimal in assembly x8086?
Related Questions in COMMAND-LINE
- How can I pass variable to ansible playbook in the command line?
- Find all files contained into directory named
- How to add documentation or comment in RakeFile
- Setting the place Python Looks for Files in CMD
- How to run ".iim" file with Google Chrome from commandline?
- Modify Control C Command Signal to Allow Input
- How to create a new file where each new line contains some text and quoted line/step number?
- Create text file using echo in command prompt
- Command line arguments are not passed in Windows 7 - Java
- does a publicly available partial solution exist to parse *nix-style command line options without pre-knowledge of the keys?
- How to call getPackageManager() from Android command-line executable
- Compare 2 text files and display the difference between them (PowerShell or CMD)
- PsExec returning "the system cannot find the file specified"
- What is the difference between "echo" and "echo -n"?
- How do I fix this error? Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'?
Related Questions in X86
- Why do we need AX instead of MOV DS, data directly with a segment?
- Drawing circles of increasing radius
- Assembly print on screen using pop ecx
- How to add values from vector to each other
- Intel x64 instructions CMPSB/CMPSW/CMPSD/CMPSQ
- Compact implementation of logical AND in x86 assembly
- Can feenableexcept hurt a program performance?
- How do I display the result and remainder in ax and dx in Assembly (tasm)
- ASM : Trouble using int21h on real machine
- jmp instruction *%eax
- What steps are needed to load a second stage bootloader by name on a FAT32 file system in x86 Assembly?
- Assembly code to print a new line string
- Write System Call Argument Registers
- How to jump to an address saved in a register in intel assembly?
- Find middle value of a list
Related Questions in DOS
- DB ASM variable in Inline ASM C++
- move folders containing a string
- How do I display the result and remainder in ax and dx in Assembly (tasm)
- What does DX + 2 mean in mov ah,9 int 21h?
- Assembly code to print a new line string
- copy file from network shared drive to desktop using DOS copy command in Javascript
- DOS debug.exe does not want to enter a string
- Open Chrome Command line without 1st run new tabs
- Passing Unicode parameters to Windows .bat file when rerunning it
- I am using DOS and I am trying to make the background white
- How to do conditional compilation with TASM?
- Lost while debugging INT 13h
- How to pipe STDOUT and STDIN to qbasic program
- Issues writing to file in assembly
- How to execute another file in Assembly 16-bits
Related Questions in TASM
- Why do we need AX instead of MOV DS, data directly with a segment?
- Read from arg / parameter in tasm
- Trying output previously input strings two in a row in TASM
- How to do conditional compilation with TASM?
- Hello World! with standard segment directives
- How to receive parameters from MS-DOS and compares it in Assembly 16-bits?
- How to pass/retrieve DOS command-line parameters in a 16-bit assembly program?
- How to do inverse subtraction in TASM?
- Using 3Dh causes interrupt to only return "Acces Denied"
- REPE CMPSB problems
- How to keep negative numbers in assembly language TASM ? x86
- TASM extra characters when calling subroutine
- Text editor program stops working TASM 8086 assembly
- TASM checking arguments when cx is modified
- inputting two variables to user in tasm 8086
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes, the command line is at
81has you have already been told. In those examples however the address had to be passed to a print string function. If you want to access the character itself, you will need a memory load, not just its address. At least with the dosbox version I have available, the command name is not included, but the separating space is. So the actual argument character if you invoke your program asmove awill be at offset82h. This sample code will thus load and print the letter:Apparently
tasmneeds theds:prefix otherwise it emits a[Constant] assumed to mean immediate constantwarning and proceeds to use it as an immediate not an address.PS: learn to use a debugger.