Author Topic: why this load fails to instructions valid appear  (Read 7075 times)

Offline Elawig57

  • Jr. Member
  • *
  • Posts: 5
why this load fails to instructions valid appear
« on: January 30, 2023, 06:55:29 AM »
I recently moved to 64-bit NASM from 32-bit MASM, and I have a simple addressing problem. I am writing a DLL in NASM.  The following two lines assemble and link with the NASM assembler / GoLink, but when I try to load the DLL, I get an OS error "invalid access to memory location."  RCX contains a pointer that is passed into the DLL: mov rax,254 mov [rcx+8],rax When I try it this way, it also doesn't work. What to do? Subarunet
« Last Edit: January 31, 2023, 04:26:10 AM by Elawig57 »

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: why this load fails to instructions valid appear
« Reply #1 on: January 30, 2023, 08:35:22 AM »
Show the code?

Best,
Frank