Bottom Page

• 0 Vote(s) - 0 Average
• 1
• 2
• 3
• 4
• 5
 what happened here?(noobie) SoulsKeeper Silly Frenchman Posts: 26 Threads: 10 Joined: Aug 2018 Reputation: 0 Likes received: 0 #1 Sep-02-2018, 01:02 PM (This post was last modified: Sep-02-2018, 01:02 PM by SoulsKeeper. Edited 3 times in total.) trying to understand what is happening in this structure 1. did 0A, 03, and 7F get poped out? if so why were they replaced by 82 2. also how does divide makes sense here? with 00 41 ```;>| Push 2 ;>| 02 Push 7F ;>| 7F 02 Read ; assuming user inputs 0x3 ;>| 03 7F 02 Push 0A ; OFFSET of Adder ;>| 0A 03 7F 02 Call ;>| 82 02 Divide ;>| 00 41 ``` Gribouillis Posts: 1,655 Threads: 14 Joined: Jan 2018 Reputation: 154 Likes received: 391 #2 Sep-02-2018, 01:37 PM (This post was last modified: Sep-02-2018, 01:37 PM by Gribouillis. Edited 1 time in total.) May be it has something to do with the fact that 82 divided by 2 gives 41 with a remainder of 0. Also in base 16, one has 03 + 7F = 82. SoulsKeeper Silly Frenchman Posts: 26 Threads: 10 Joined: Aug 2018 Reputation: 0 Likes received: 0 #3 Sep-02-2018, 01:37 PM (Sep-02-2018, 01:34 PM)Gribouillis Wrote: May be it has something to do with the fact that 82 divided by 2 gives 41 with a remainder of 0. why do you get the remainder?(sorry for stupid question still new) do you have any idea whats happening after the call function? i don't think i get it SoulsKeeper Silly Frenchman Posts: 26 Threads: 10 Joined: Aug 2018 Reputation: 0 Likes received: 0 #4 Sep-02-2018, 03:32 PM (Sep-02-2018, 01:02 PM)SoulsKeeper Wrote: trying to understand what is happening in this structure 1. did 0A, 03, and 7F get poped out? if so why were they replaced by 82 2. also how does divide makes sense here? with 00 41 ```;>| Push 2 ;>| 02 Push 7F ;>| 7F 02 Read ; assuming user inputs 0x3 ;>| 03 7F 02 Push 0A ; OFFSET of Adder ;>| 0A 03 7F 02 Call ;>| 82 02 Divide ;>| 00 41 ``` no matter where i ask, no one understands why there is a 82 hex after the call, don't know what to do j.crater Posts: 1,056 Threads: 32 Joined: Sep 2016 Reputation: 41 Likes received: 148 #5 Sep-02-2018, 03:48 PM (This post was last modified: Sep-02-2018, 03:49 PM by j.crater. Edited 2 times in total.) Of course no one understands, without documentation/specification of the language you use, best anyone can do is guess. Have you no documents of any kind at your disposal that would help you with the course/material you are studying? Besides, perhaps needless, but I should remind you this is a Python users community forum. Which, despite all efforts to help you, is probably not the best place to look for answers to this kind of questions. « Next Oldest | Next Newest »

Top Page

 Possibly Related Threads... Thread Author Replies Views Last Post Anyone know what happened to pypi-org stats page? Crontab 4 228 Jul-11-2019, 07:01 PM Last Post: Crontab where to learn about Stack overflow for a noobie SoulsKeeper 4 604 Aug-31-2018, 10:55 AM Last Post: Larz60+ what happened to some of the other users? metulburr 7 3,297 Nov-07-2016, 08:24 PM Last Post: micseydel

Forum Jump:

Users browsing this thread: 1 Guest(s)