0 Members and 1 Guest are viewing this topic.
LD A,"Hello, World!"OUT ARET
Qvalue = lambda {|a, b, c| Qlambda = lambda{|a, b, c, plus| if plus; -b + Math.sqrt(b**2-(4*a*c)).div(2*a) else;-b - Math.sqrt(b**2-(4*a*c)).div(2*a);end } if a == 0;nil;else [Qlambda.call(a,b,c,true),Qlambda.call(a,b,c,nil)];end }Args = Array.new(3);Names = ['A','B','C']3.times do |location| puts "Input: " << Names[location] << "?" Args[location] = gets.chomp;endAns = Qvalue.call(Args[1].to_f.to_r,Args[2].to_f.to_r,Args[3].to_f.to_r)if Ans;puts 'Answer is ' << Ans[0].to_s << ' and ' << Ans[1].to_s << ' 'else;puts 'No Real Answers';end
void AlphaSprite(short* data, int x, int y, int width, int height, char alpha) { short* VRAM = (short*)0xA8000000; int CurColor = 0; VRAM += (LCD_WIDTH_PX*y)+x; for(int j=y; j<y+height; j++) { for(int i=x; i<x+width; i++) { CurColor = (*(VRAM) + (alpha*(*(data++))/256))/2; *(VRAM++) = CurColor % (65536); } VRAM += (LCD_WIDTH_PX-width); } }
I am a proud cynic.