GDMike Posted June 1, 2020 Author Share Posted June 1, 2020 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. Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 1, 2020 Author Share Posted June 1, 2020 (edited) 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 June 1, 2020 by GDMike 1 Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 1, 2020 Author Share Posted June 1, 2020 (edited) 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 June 1, 2020 by GDMike Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 1, 2020 Author Share Posted June 1, 2020 (edited) I'm trying some formula. Well see Edited June 2, 2020 by GDMike 1 Quote Link to comment Share on other sites More sharing options...
+mizapf Posted June 2, 2020 Share Posted June 2, 2020 That's an ascii-to-hex conversion. You'll need a small subprogram, it's not just simple arithmetics, I guess. 1 1 Quote Link to comment Share on other sites More sharing options...
HOME AUTOMATION Posted June 2, 2020 Share Posted June 2, 2020 Some good info here... 1 Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 2, 2020 Author Share Posted June 2, 2020 (edited) 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 June 2, 2020 by GDMike 1 Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 2, 2020 Author Share Posted June 2, 2020 (edited) Sitting in the corner wearing the hat of shame. On a 15 minute timeout. Edited June 2, 2020 by GDMike 1 Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 2, 2020 Author Share Posted June 2, 2020 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. Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 2, 2020 Author Share Posted June 2, 2020 (edited) Ok. 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. VID_20200601_232959612.mp4 Edited June 2, 2020 by GDMike Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 2, 2020 Author Share Posted June 2, 2020 (edited) 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. Edited June 2, 2020 by GDMike Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 2, 2020 Author Share Posted June 2, 2020 (edited) 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 June 2, 2020 by GDMike Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 2, 2020 Author Share Posted June 2, 2020 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 $ Quote Link to comment Share on other sites More sharing options...
HOME AUTOMATION Posted June 2, 2020 Share Posted June 2, 2020 ...a little dizzy 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 1 Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 2, 2020 Author Share Posted June 2, 2020 (edited) 11 minutes ago, HOME AUTOMATION said: ...a little dizzy 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 June 2, 2020 by GDMike Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 2, 2020 Author Share Posted June 2, 2020 (edited) I'll take it up tommorow. For some reason I'm not getting"F" as a value in the formula. Edited June 2, 2020 by GDMike 1 Quote Link to comment Share on other sites More sharing options...
HOME AUTOMATION Posted June 2, 2020 Share Posted June 2, 2020 Ganight... 1 Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 2, 2020 Author Share Posted June 2, 2020 Ty have a great one over there. I'll probably be cutting the backyard early in the morning...did the front this morning.. I'll be up all night thinking what did I screw up in this code ..well we were soooo close... Quote Link to comment Share on other sites More sharing options...
HOME AUTOMATION Posted June 2, 2020 Share Posted June 2, 2020 (edited) Your video is still downloading 63Meg so far. While it was still downloading, I watched TheBF's video LIVE! EDIT: Still downloading...124Meg... Is there no lower RESOLUTION setting Edited June 2, 2020 by HOME AUTOMATION 1 Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 2, 2020 Author Share Posted June 2, 2020 25 minutes ago, HOME AUTOMATION said: ...a little dizzy 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. Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 2, 2020 Author Share Posted June 2, 2020 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! 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. 1 Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 2, 2020 Author Share Posted June 2, 2020 (edited) 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! 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 VID_20200602_090034905.mp4 Edited June 2, 2020 by GDMike Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 2, 2020 Author Share Posted June 2, 2020 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! EDIT: Still downloading...124Meg... Is there no lower RESOLUTION setting Heres a 5 sec widescreen VID_20200602_090307846.mp4 Quote Link to comment Share on other sites More sharing options...
HOME AUTOMATION Posted June 2, 2020 Share Posted June 2, 2020 It took about 30 Sec. to watch, breaking up because my old T41 cant keep up with the hi-resolution, stopped halfway through, while downloading continued, because the file is so big. 1 Quote Link to comment Share on other sites More sharing options...
GDMike Posted June 2, 2020 Author Share Posted June 2, 2020 (edited) Did you try any of the two videos from above reference I'm guessing you're not using high speed internet. But more importantly, why were you dizzy? Edited June 2, 2020 by GDMike Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.