Author Topic: Several questions  (Read 13214 times)

0 Members and 2 Guests are viewing this topic.

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Several questions
« Reply #30 on: October 05, 2010, 06:31:55 pm »
It's the last two letters you should be interested in. :)
"IR" stands for "Increment Repeat" and "DR" stands for "Decrement Repeat."
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Several questions
« Reply #31 on: October 05, 2010, 06:33:27 pm »
Yeah, I knew what I and D stood for (they're in LDI and LDD, anyway). I just couldn't figure out that last R, for some reason :D




Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Several questions
« Reply #32 on: October 05, 2010, 06:39:59 pm »
How the repeat works is rather interesting, actually.
For example, LDIR acts almost exactly like LDI, in fact, this code acts almost exactly the same (except for speed :P)
Effectively the pc does not change unless bc is zero; the instruction is executed over and over.
Code: [Select]
ldir_loop:
ldi
jp pe,ldir_loop
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.