Author Topic: KnightOS  (Read 205957 times)

0 Members and 3 Guests are viewing this topic.

Offline Broseph Radson

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 295
  • Rating: +20/-1
  • Its 0x1A4 somewhere
    • View Profile
Re: KnightOS
« Reply #690 on: December 09, 2010, 08:42:07 am »
Sweet!!  :w00t: <--This smiley rules BTW

Offline Ikkerens

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 378
  • Rating: +28/-9
  • JavaScript Magician
    • View Profile
    • Walotech
Re: KnightOS
« Reply #691 on: December 09, 2010, 08:44:06 am »
Sweet!!  :w00t: <--This smiley rules BTW
Thx, I suggested it to DJ ;)

Splut for Android [----------]
Paused/halted indefinitely, might be abandoned, our graphic designer quit and the rest of us simply doesn't have the time to work on it...

SirCmpwn

  • Guest
Re: KnightOS
« Reply #692 on: December 09, 2010, 08:49:28 am »
graphmastur, I did read your entire post :P

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: KnightOS
« Reply #693 on: December 09, 2010, 05:36:12 pm »
graphmastur, I did read your entire post :P
oh, okay. I just thought that you meant that you were worried your system was going to get destroyed. It's fine, either way.  Well, 23 days till KOS...

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: KnightOS
« Reply #694 on: December 09, 2010, 05:44:28 pm »
Ah, right. Is it just because your code is heavily commented?
That, and I'm using macros for a lot of the similar instructions. Without those macros, if I want to improve or change my algorithm I'll have to change it in every single opcode in which it occurs. And with that, I'll stop hijacking this thread :P
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: KnightOS
« Reply #695 on: December 09, 2010, 06:55:56 pm »
Ah, right, macros makes code easier to read and manage. :P z80 code can get pretty long sometimes. X.x

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: KnightOS
« Reply #696 on: December 09, 2010, 07:05:13 pm »
Tell me about it x.x
/e

SirCmpwn

  • Guest
Re: KnightOS
« Reply #697 on: December 09, 2010, 07:13:50 pm »
I actually don't use many macros, actually.  I like seeing the entire code.  It's much easier to optimize that way.

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: KnightOS
« Reply #698 on: December 09, 2010, 10:29:22 pm »
I actually don't use many macros, actually.  I like seeing the entire code.  It's much easier to optimize that way.
Yeah, it depends. Wouldn't lcall and kcall have to be a macro, though?

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: KnightOS
« Reply #699 on: December 09, 2010, 11:17:24 pm »
OS calls don't count :P

it sounds like Macros are basically the equivalent of a sub() command in axe, with a return. Am I right? or do they behave differently?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: KnightOS
« Reply #700 on: December 10, 2010, 02:07:38 am »
I think macros are kinda like to make the language you are using more higher level and thus, easier to read. Maybe it's more like a function, though.

SirCmpwn

  • Guest
Re: KnightOS
« Reply #701 on: December 10, 2010, 08:43:49 am »
Macros are something that is replaced in code with something else.  For example, let's say that I define break() as this:
Code: [Select]
di
halt

The following code:
Code: [Select]
inc hl
break
dec hl

Would be assembled like this:
Code: [Select]
inc hl
di
halt
dec hl

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: KnightOS
« Reply #702 on: December 10, 2010, 11:15:13 am »
Sir, will you keep working on this even without no calculator?

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: KnightOS
« Reply #703 on: December 10, 2010, 04:12:21 pm »
Sir, will you keep working on this even without no calculator?
True, I guess you could use Wabbit or something.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: KnightOS
« Reply #704 on: December 10, 2010, 04:13:37 pm »
Sir, will you keep working on this even without no calculator?
True, I guess you could use Wabbit or something.

Someone suggested using a person to test his programs in hardware too.