1
BYTE X'05'
BYTE C'05'

what is difference between X and C?

if I want to write object program,how can I make LOC?

Peter Cordes
  • 328,167
  • 45
  • 605
  • 847
Air_peter
  • 11
  • 1
  • 1
    Which assembler is that? – David Wohlferd Apr 19 '20 at 06:44
  • 2
    Looks like [SIC](https://en.wikipedia.org/wiki/Simplified_Instructional_Computer) ? – Paul R Apr 19 '20 at 06:51
  • 1
    @PaulR: yup, that's what I thought the title was saying, too. We don't have tags for every toy assembler, I guess we might as well create them since this probably isn't the first or last SIC or SIC/XE question. – Peter Cordes Apr 19 '20 at 06:53
  • So it looks like X is a hex indicator and C indicates a constant string? – David Wohlferd Apr 19 '20 at 06:57
  • 1
    I assume `X` is hex and `C` is ASCII character codes, like `db "05"` vs. `db 0x05` in NASM syntax or something. Or in C like `static char unnamed[] = { 0x05, '0', '5' };` if I'm understanding correctly from the wikipedia example. – Peter Cordes Apr 19 '20 at 06:57
  • I just learn SIC for two month.I see the program on the book. – Air_peter Apr 19 '20 at 09:41
  • 1
    So X is hex and C is ASCII code.If I want to make LOC I need to make ASCII to hex to work? – Air_peter Apr 19 '20 at 09:44

0 Answers0