Jump to content
IGNORED

Supernotes


GDMike

Recommended Posts

Currently, I have the capability for 9 colors. Because I'm only reading one byte in my"CALL COLOR (#)"

Statement. But I have a plan to enhance that to 2 bytes as

"CALL COLOR (##)"  giving me

99 colors to choose.

I'm thinking to limit that at 99

... but I'm still thinking about it.

 

Link to comment
Share on other sites

Ok ok. I've heard you from here, ok maybe you were just thinking too loud and I heard you, one of you.

I'll just have the user directly plug in the hex values needed for foreground and background as the two bytes to enter.

As in, "CALL COLOR (F5)"

White chars on blue screen.

And be done with that.

Well I was trying to decide how far the user guest would have to go on remembering what values are what, but nothing beats this for ease of use, except a mouse and color wheel.

I'll add a color selection help text menu.

 

Edited by GDMike
  • Haha 1
Link to comment
Share on other sites

I have an issue, I need a math expert..lol

I have R5 that can contain a value in ASCII that's 16 bits and it's equivalent to my hex code for my color scheme.

Example: LI,R5 >4635 and I want it to look like this but in R0

Example: LI R0,>07F5

So I can push my video write register 7 with my values I read from my user input that are in R5.

 

 

 

 

Edited by GDMike
Link to comment
Share on other sites

10 minutes ago, HOME AUTOMATION said:

Some good info here...

 

;)

 

I think I got it.. but not sure yet.. still compiling...

But I kinda remember this...

I have a terrible memory unfortunately. But let's see what I come up with on my latest run.ty.i feel stupid again

I'm rerunning again, I missed a statement by 1 value...

Re-running.

Thank you so much for that reminder...

I'll add it to my book of code shorties...I'm so sorry for wasting your time..I'll try to do better. 

Edited by GDMike
  • Thanks 1
Link to comment
Share on other sites

1 hour ago, mizapf said:

That's an ascii-to-hex conversion. You'll need a small subprogram, it's not just simple arithmetics, I guess.

Yes, stupid me, I went through this last year with the same question. I can't believe it. And professor automation remembered giving me the formula and reminded me again today. It's a swpb an add negative, swpb move and shifting left 4 times.. yada yada..

Professor makes it simple.

I was close though, I did figure on my own to subtract >30 and at least I got that far on my own so not too bad.

Link to comment
Share on other sites

IMG_20200601_232334202.thumb.jpg.8e1ed3ac9a248220753ff6e196dc2c93.jpgOk. I'm able to change colors. 

And if I enter "17" then I get what is expected. Black chars on cyan screen.

If I enter "F4" I do not get white chars on blue screen.

But my other combos are working correctly, like black chars on green screen and so on...

Ill post a video of the action, but basically I'm prompted to enter my values, I enter F4 and I've tried with F5 also, I get like orange chars on blue.

Note: BCOL contains two bytes, first would be "F" and the other is "4" or "5" I've tried both.

 

Edited by GDMike
Link to comment
Share on other sites

Why does E4 work....hmmm

Which is very close to F5.. still troubleshooting..

I displayed my values to the screen after entering my values initially just to echo that my numbers are what they are supposed to be.. and it's all true..

Still troubleshooting..

Seems I can't get any white chars.

1591072848890521555945.jpg

Edited by GDMike
Link to comment
Share on other sites

I'm going to manually plug in the correct values and perform a Write to VDP register 7 inside my program. 

It should reinstate my color of white chars on blue background. 

This is so weird. I added as my last statement to the code above

LI R0,>07F4

BLWP @VWTR

And I got what I expected, white chars on Blue background..

 

 

Edited by GDMike
Link to comment
Share on other sites

I should have read the rest of that old post...

I was missing this

SWPB R1
       CI   R1,>40
       JLE  NEXT
       AI   R1,->37
       JMP  NEXT2
NEXT   AI   R1,->30
NEXT2  SLA  R1,4
       MOV  R1,R4
       INC  R0
       CLR  R1
       BLWP @VSBR
       SWPB R1
       CI   R1,>40
       JLE  NEXT3
       AI   R1,->37
       JMP  NEXT4
NEXT3  AI   R1,->30
NEXT4  A    R4,R1
       SWPB R1
       AI   R0,31
       BLWP @VSBW
       JMP  $
Link to comment
Share on other sites

11 minutes ago, HOME AUTOMATION said:

...a little dizzy:rolling: at this hour, but I noticed this...

 

LI R1,BCOL

 

Will load R1 with the address BCOL, not the data at that address!

 

try...

 

MOV @BCOL,R1

;-)

Well it's a beater way, but my output was the same 2 bytes written to the screen so I can test with. Once confirmed I'll move that code to the way you have it..

I just had errors in the math I believe.

Recompiling..

Edited by GDMike
Link to comment
Share on other sites

25 minutes ago, HOME AUTOMATION said:

...a little dizzy:rolling: at this hour, but I noticed this...

 

LI R1,BCOL

 

Will load R1 with the address BCOL, not the data at that address!

 

try...

 

MOV @BCOL,R1

;-)

I was LI R1,BCOL

LI R2,2

LI R0 a location to where Id read my data

And BLWP @VMBW

Writing my data that was already present in BCOL from my user input F5 prompt.

Then reading it into R1

Only because I wanted to see my data.. this is code left over from earlier and since it's redundant I didn't change it.. until my code works later then I'll probably clean it up.

 

Link to comment
Share on other sites

7 hours ago, HOME AUTOMATION said:

Your video is still downloading 63Meg so far. While it was still downloading, I watched TheBF's video LIVE!:twisted:

 

 

EDIT: Still downloading...124Meg... Is there no lower RESOLUTION setting:?

It's a damn phone I'm using. I haven't seen any setting for changing anything for video unless I look for another app. But the camera still photos have settings.

I'm not sure if the site itself has a way of changing the upload to a better format.

  • Like 1
Link to comment
Share on other sites

8 hours ago, HOME AUTOMATION said:

Your video is still downloading 63Meg so far. While it was still downloading, I watched TheBF's video LIVE!:twisted:

 

 

EDIT: Still downloading...124Meg... Is there no lower RESOLUTION setting:?

Ive sent a msg to the admin for the site as I'm not seeing anything on my side to adjust the upload type for videos.

I have two settings, I changed to the portrait. Here's a 5 sec video

 

Edited by GDMike
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...