Timeline for The shortest way to find one unique value when all other values are the same
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 3, 2020 at 14:17 | history | rollback | 640KB |
Rollback to Revision 9
|
|
Aug 3, 2020 at 1:14 | history | edited | 640KB | CC BY-SA 4.0 |
gratuitous 5150 pic
|
Aug 1, 2020 at 15:36 | history | edited | 640KB | CC BY-SA 4.0 |
better screenshots
|
Jul 31, 2020 at 13:45 | history | edited | 640KB | CC BY-SA 4.0 |
use Peter Cordes's suggestion for LEA instead of MOV/INC (same byte count though)
|
Jul 31, 2020 at 3:40 | comment | added | Peter Cordes |
lea di, [si+1] is the same size but saves instructions. IDK if we could justify taking the array length as "max index", avoiding the dec cx . It's not an "interesting" saving, just calling-convention wanking, so not worth updating your test-result images. And hard to justify; it's so standard to do pointer+length even in asm. Nice idea overall to use rep cmpsb this way.
|
|
Jul 29, 2020 at 14:22 | history | edited | 640KB | CC BY-SA 4.0 |
deleted 2 characters in body
|
Jul 28, 2020 at 22:05 | history | edited | 640KB | CC BY-SA 4.0 |
now with real PC DOS screenshots
|
Jul 28, 2020 at 21:49 | history | edited | 640KB | CC BY-SA 4.0 |
little more explanation
|
Jul 28, 2020 at 21:44 | history | edited | 640KB | CC BY-SA 4.0 |
little more explanation
|
Jul 28, 2020 at 21:14 | history | edited | 640KB | CC BY-SA 4.0 |
better screenshots (that actually show the return value of SI)
|
Jul 28, 2020 at 21:05 | history | edited | 640KB | CC BY-SA 4.0 |
add explanation
|
Jul 28, 2020 at 20:51 | history | answered | 640KB | CC BY-SA 4.0 |