Tags down


'wrong parameters' while using pointer in assembly, what's wrong?

By : Igor Pylypko
Date : September 16 2020, 09:00 PM
I hope this helps you . Simple answer: x86 assembly doesn't support two explicit memory operands in one instruction.
So your first instruction cmp [cx], num is invalid. Load one of the arguments into a register first, and then execute the comparison (for example, like this):
code :
mov ax, num     ; preferably outside the loop
cmp [cx], ax
inc count
jmp LOOP1

Share : facebook icon twitter icon

whats wrong with the default parameters?

By : user3073584
Date : March 29 2020, 07:55 AM
Any of those help I have this function declaration and definition.. , Mention the default value for the parameter in the declaration ONLY:
code :
//declaration  with default parameter
void loadFromFile( string const& fileName, 
                   Frames& frames, 
                   ostream& log =std::clog);
void loadFromFile( string const& fileName, 
                   Frames& frames, 
                   ostream& log) 

Whats wrong with my assembly code

By : Kevin Chatel
Date : March 29 2020, 07:55 AM
I hope this helps you . So I'm writing a game in c++ for MS-DOS and I'm including some inline assembly for speed. This particular block of code would draw a star into the video memory (0A000h). The problem with my code is that it only draws one pixel in whatever color dh is set to. As far as I know mov dx, 00007h is equivalent to setting dh to 0 and dl to 7. What is wrong? , I think you have forgotten to update di after updating ax
code :
add ax,1
mov di,ax ;don't forget this line
mov es:[di],dl

Whats wrong with the Null pointer

By : supriya
Date : March 29 2020, 07:55 AM
wish of those help You're passing the pointer by value, so inside the function you're actually assigning to a new pointer, not the original one.
Change the function prototype to void StrIn(char *&sp).

Whats wrong with this one? C++ Array Pointer

By : Thomas C
Date : March 29 2020, 07:55 AM
Does that help Looking at what you are asked to do I think you just have to determine the highest and lowest int in the array and point to. You sort the array thats slower.
I think it should look like that:
code :
using namespace std;
int main()
    int kre_arr[10];
    int *low;
    int *high;

    cout<<"Enter 10 Integers: ";
    for (int i=0; i < 10; i++)

    //determine the lowest
    for(int i=1;i<10;i++)
       if(kre_arr[i] < *low)

    //determine the highest
    for(int i=1;i<10;i++)
       if(kre_arr[i] > *high)

    cout<<"lowest: "<<*low<<"\nhighest: "<<*high;

Whats wrong with 'react-redux.connect()' parameters?

By : user3106631
Date : March 29 2020, 07:55 AM
it fixes the issue I made this change to your snack, and it seems to run fine on the ios/android simulators.
code :
const actions = {
  changeFirstName: actionChangeFirstName,
  changeSecondName: actionChangeSecondName,

const mapDispatchToProps = dispatch => ({ actions: bindActionCreators(actions, dispatch) });

const AppComponent = connect(
Related Posts Related Posts :
  • 6502 randy hyde subroutine problem "JSR INCRTN"
  • when changing interrupt in assembly...?
  • Anonymous local labels (@@): Which assemblers support multi-step references such as @FF (second-next @@)?
  • How to implement the totalOrder predicate for floating point values?
  • Does nasm code automatically move to the next label if it meets the end of _start?
  • How to perform a calculation that triggers interrupt 0 without using the "int" command.?
  • How to check if number is even or odd in Assembler
  • Assembly push or reserve stack for 2 or more registers
  • Nasm - How does the program keep track of which register has stored negative or positive values
  • Call Instruction: Compilation into machine code
  • Why stack pointer need to be updated before jumping to application from bootloader
  • How to properly link two object files without affecting rip relative addressing?
  • UBUNTU 16.04 Getting libx86emu x86emu-demo to work?
  • Symbol 'a1' undefined (Assembly language)
  • Table of the instruction length of each assembly command
  • What is the difference between the instructions STI, RET and IRET in assembly
  • why SHL AL does not always multiply register AL by 2
  • x86 dissasembler that shows instruction extensions needed
  • Access violation when using two consecutive mov instructions
  • How to read x86 instruction tables from this site
  • Imul in 64-assembly
  • Assembly using rN registers (r8,r9,...) have more code-size than other registers
  • Assembly: Not Executing Commands After Boot Signature
  • List for TI-84 z80 assembly calls?
  • Modifying Makefile to produce assembly files
  • Code converted from emu8086 to NASM isn't working
  • Can anyone explain this DOS hello world for emu8086?
  • EIP register value goes over 100 bytes
  • Which instructions can produce a branch misprediction on x86 CPUs?
  • Mixed destination/source operand order in RISC-V assembly syntax
  • shadow
    Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk