Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Is there anyway of having many lines of code in one line ?

Reply to topic
Author Message
  • Joined: 12 Dec 2022
  • Posts: 10
  • Location: Lloret de Mar
Reply with quote
Is there anyway of having many lines of code in one line ?
Post Posted: Sat Dec 17, 2022 1:47 am
Is there anyway of having many lines of code in one line ?

I meant, instead of having:

.memorymap
defaultslot 0
slotsize $8000
slot 0 $0000
.endme


may I have:

.memorymap SEPARATOR defaultslot 0 SEPARATOR slotsize $8000 SEPARATOR slot 0 $0000 SEPARATOR .endme
  View user's profile Send private message
  • Joined: 01 Feb 2014
  • Posts: 849
Reply with quote
Post Posted: Sat Dec 17, 2022 7:30 am
Why would you want to make your code less readable?
  View user's profile Send private message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14690
  • Location: London
Reply with quote
Post Posted: Sat Dec 17, 2022 8:21 am
Not in WLA DX. See https://github.com/vhelin/wla-dx/issues/156
  View user's profile Send private message Visit poster's website
  • Joined: 04 Jul 2010
  • Posts: 539
  • Location: Angers, France
Reply with quote
Post Posted: Sat Dec 17, 2022 9:31 am
You can write data like this
.db $00 $00 $00...
Or
.dw $0000 $0000 $0000...
(Maybe limited to 256 bytes per line, must be checked)
  View user's profile Send private message
  • Joined: 05 Sep 2013
  • Posts: 3763
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Sun Dec 18, 2022 3:20 pm
ichigobankai wrote
You can write data like this
.db $00 $00 $00...
Or
.dw $0000 $0000 $0000...
(Maybe limited to 256 bytes per line, must be checked)


I don't remember any specific limit on this.
  View user's profile Send private message Visit poster's website
  • Joined: 04 Jul 2010
  • Posts: 539
  • Location: Angers, France
Reply with quote
Post Posted: Sun Dec 18, 2022 5:00 pm
it was with text (.db "lorem ipsum dolor..."), not real .db $xx data

INPUT_NUMBER: The string is too long (max 255 characters allowed).
  View user's profile Send private message
Reply to topic



Back to the top of this page

Back to SMS Power!