Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 4,662 of 4,675    |
|    Paul Edwards to Paul Edwards    |
|    Re: x64 address indexed by 32-bit addres    |
|    13 Feb 24 14:17:18    |
      From: mutazilah@nospicedham.gmail.com              On 19/01/24 21:42, Paul Edwards wrote:              > LM1873:       > movl $4294967295, %eax        > addq -64(%rbp), %rax        > movsbl (%rax),%esi        > movl $LC445, %edi        > movb $0, %al        > call _printf              This has now been resolved. I wasn't building my       modified gcc 3.2.3 properly, so it thought that       size_t was 32 bits instead of 64 and was making       it unsigned.              Now I am getting working code:              D:\devel\gcc\gcc>type foo.s        .file "foo.c"        .text        .p2align 2,,3       .globl foo       foo:       .LFB1:        movsbl -1(%rcx),%eax        ret       .LFE1:              D:\devel\gcc\gcc>                     (rcx is because one of my modifications is to use       Win64 function call convention)              BFN. Paul.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca