flat assembler
Message board for the users of flat assembler.
  
|  Index
      > Windows > binary tree example for windows (console) | 
| Author | 
 | 
| vid 03 Sep 2007, 12:35 did you try to debug it? if not, download OllyDebug and learn it.
 people usually aren't in moodto lookfor your bugs  | |||
|  03 Sep 2007, 12:35 | 
 | 
| 0.1 03 Sep 2007, 12:48 Why they are showing so much reluctance!
 Have I done something wrong (violated the forum rules, hurt some one ...) ? You guys used to be way more helpful earlier!  I am not at all comfortable using the debuggers    They scare me away  | |||
|  03 Sep 2007, 12:48 | 
 | 
| LocoDelAssembly 03 Sep 2007, 13:26 The inorder proc needs the pointer passed by value and you do that when you call it from main, however, the recursive calls does not respect the requirement and pass it by reference in the same way the recursive calls are made in insert proc (which is OK in that one).
 Replace the push eax / call inorder pairs with push dword [eax] / call inorder . The bug is very simple, however I wasn't able to figure it out myself after carefully reading, I had to use OllyDbg  This is soooo sad :'( PS: BTW, remember to remove the "jmp .return" at inorder proc. | |||
|  03 Sep 2007, 13:26 | 
 | 
| 0.1 06 Oct 2007, 13:00 binary tree example that prints the tree on console 
 _________________ Code: o__=- ) (\ /\ | |||||||||||
|  06 Oct 2007, 13:00 | 
 | 
| 0.1 08 Oct 2007, 12:34 the binary tree example in HL macros syntax 
 _________________ Code: o__=- ) (\ /\ | |||||||||||
|  08 Oct 2007, 12:34 | 
 | 
| < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.