Timeline for Evaluate left-or-right
Current License: CC BY-SA 4.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 6, 2021 at 2:43 | comment | added | user99151 | @640KB Hopefully fixed. | |
Feb 6, 2021 at 2:40 | history | edited | user99151 | CC BY-SA 4.0 |
deleted 3 characters in body
|
Feb 5, 2021 at 17:47 | comment | added | 640KB |
Hmm now I see what you mean about output at top of the stack. Unfortunately I don't think this is okay by the rules since you're now leaving things on the stack and SP not preserved - that RET will not actually return to caller. Specifically ESP/RSP must be call-preserved and x87 st0 is reasonable, but returning in st3 with garbage in other x87 register isn't. The caller would have to clean up the x87 stack . If it's too costly to unwind the stack in the code, maybe save SP in the beginning and restore SP at the end?
|
|
Feb 5, 2021 at 10:13 | history | edited | user99151 | CC BY-SA 4.0 |
edited body
|
Feb 5, 2021 at 10:05 | history | edited | user99151 | CC BY-SA 4.0 |
deleted 76 characters in body
|
Feb 5, 2021 at 8:04 | history | edited | user99151 | CC BY-SA 4.0 |
added 81 characters in body
|
Feb 5, 2021 at 8:00 | comment | added | user99151 | @Bubbler You're right! Silly me. :) | |
Feb 5, 2021 at 7:59 | comment | added | Bubbler |
Good old stack-based expression evaluation, in one loop. Btw, can't you change ADD SP,2 to, say, POP BX ?
|
|
Feb 5, 2021 at 7:16 | history | edited | user99151 | CC BY-SA 4.0 |
added 260 characters in body
|
Feb 5, 2021 at 7:11 | history | edited | user99151 | CC BY-SA 4.0 |
added 260 characters in body
|
Feb 5, 2021 at 7:05 | history | edited | user99151 | CC BY-SA 4.0 |
added 260 characters in body
|
Feb 5, 2021 at 6:58 | history | undeleted | user99151 | ||
Feb 5, 2021 at 6:57 | history | deleted | user99151 | via Vote | |
Feb 5, 2021 at 6:57 | history | answered | user99151 | CC BY-SA 4.0 |